Skip to content

Commit

Permalink
broot: remove unnecessary IFD
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen authored and 15cm committed Apr 22, 2023
1 parent afb4637 commit 3dac939
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/programs/broot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,19 @@ in {
source = pkgs.symlinkJoin {
name = "xdg.configFile.broot";
paths = [
(pkgs.writeTextDir "conf.toml" (builtins.readFile
(tomlFormat.generate "broot-config" cfg.settings)))

# Copy all files under /resources/default-conf
"${cfg.package.src}/resources/default-conf"

# Dummy file to prevent broot from trying to reinstall itself
(pkgs.writeTextDir "launcher/installed-v1" "")
];

# Remove conf.hjson, whose content has been merged into programs.broot.settings
postBuild = ''
ln -s ${
tomlFormat.generate "broot-config" cfg.settings
} $out/conf.toml
# Remove conf.hjson, whose content has been merged into programs.broot.settings
rm $out/conf.hjson
'';
};
Expand Down

0 comments on commit 3dac939

Please sign in to comment.