Wrap tofi without forcing a rebuild.
This commit is contained in:
parent
2aca77ea1a
commit
8d911ff893
@ -109,7 +109,7 @@
|
||||
randomizedDelaySec = "14m";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
# nix.settings.auto-optimise-store = true;
|
||||
nix.settings.auto-optimise-store = !config.me.buildingIso;
|
||||
|
||||
# Use doas instead of sudo
|
||||
security.doas.enable = true;
|
||||
|
@ -40,11 +40,6 @@ in
|
||||
(final: prev: {
|
||||
rofimoji = prev.rofimoji.overrideAttrs (old: {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [ pkgs.tofi ];
|
||||
# postInstall =
|
||||
# old.postInstall
|
||||
# + ''
|
||||
# wrapProgram $out/bin/rofimoji --prefix PATH : ${lib.makeBinPath [ pkgs.wofi ]}
|
||||
# '';
|
||||
src = builtins.fetchGit {
|
||||
# https://github.com/fdw/rofimoji/issues/209
|
||||
url = "https://github.com/fdw/rofimoji.git";
|
||||
@ -53,17 +48,16 @@ in
|
||||
});
|
||||
})
|
||||
(final: prev: {
|
||||
tofi = prev.tofi.overrideAttrs (old: {
|
||||
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ pkgs.makeWrapper ];
|
||||
postInstall =
|
||||
old.postInstall or ""
|
||||
+ ''
|
||||
tofi = pkgs.symlinkJoin {
|
||||
name = "tofi";
|
||||
paths = [ prev.tofi ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/tofi-drun --add-flags --font=${pkgs.source-sans-pro}/share/fonts/opentype/SourceSansPro-Regular.otf --add-flags --config=${./files/tofi-config}
|
||||
wrapProgram $out/bin/tofi --add-flags --config=${./files/tofi-config}
|
||||
'';
|
||||
});
|
||||
};
|
||||
})
|
||||
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user