1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

broot: use hjson-go

Reduces the build closure quite a bit.
This commit is contained in:
Robert Helgesson 2025-02-04 23:56:05 +01:00
parent 7a3f0b3b8d
commit f2d32e46fa
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
2 changed files with 3 additions and 3 deletions

View file

@ -228,9 +228,9 @@ in {
programs.broot.settings = builtins.fromJSON (builtins.readFile programs.broot.settings = builtins.fromJSON (builtins.readFile
(pkgs.runCommand "default-conf.json" { (pkgs.runCommand "default-conf.json" {
nativeBuildInputs = [ pkgs.hjson ]; nativeBuildInputs = [ pkgs.hjson-go ];
} }
"hjson -c ${cfg.package.src}/resources/default-conf/conf.hjson > $out")); "hjson-cli -c ${cfg.package.src}/resources/default-conf/conf.hjson > $out"));
programs.bash.initExtra = mkIf cfg.enableBashIntegration (shellInit "bash"); programs.bash.initExtra = mkIf cfg.enableBashIntegration (shellInit "bash");

View file

@ -6,7 +6,7 @@
settings.modal = true; settings.modal = true;
}; };
nixpkgs.overlays = [ (self: super: { inherit (realPkgs) broot hjson; }) ]; nixpkgs.overlays = [ (self: super: { inherit (realPkgs) broot hjson-go; }) ];
nmt.script = '' nmt.script = ''
assertFileExists home-files/.config/broot/conf.toml assertFileExists home-files/.config/broot/conf.toml