nix-community / dconf2nix

:feet: Convert dconf files (e.g. GNOME Shell) to Nix, as expected by Home Manager [maintainer=@jtojnar]
Apache License 2.0
218 stars 6 forks source link

Problem parsing uint64 properties #111

Open Maraxi opened 1 month ago

Maraxi commented 1 month ago

Type of bug

Parsing error

Version

0.1.1

Did you test against master?

Error message (if not timeout)

dconf2nix: "<stdin>" (line 2, column 17):
unexpected "u"
expecting "@", "{", "[", "'", "false", "true", "-", digit, "uint32 ", "int64 ", "\"", "(" or "<("
CallStack (from HasCallStack):
  error, called at src/DConf2Nix.hs:35:16 in dconf2nix-0.1.1-AY0n40I6HuiBfBhx2w9LA5:DConf2Nix

DConf input

[org/nemo/preferences]
thumbnail-limit=uint64 1073741824

Additional context

Change the type in my input file from unit64 to int64 or unit32 leads to a successful run

No response

jtojnar commented 1 month ago

Thanks for reporting, this is already fixed in master (https://github.com/nix-community/dconf2nix/commit/557f3def9c662019384326add586374c89cf2184). But it still needs support in Nixpkgs/home-manager.