Replace wofi with tofi.
This commit is contained in:
@@ -10,7 +10,7 @@ let
|
||||
name = "rofimoji.conf";
|
||||
text = ''
|
||||
# Emoji selector
|
||||
bindsym $mod+backslash exec ${pkgs.rofimoji}/bin/rofimoji --selector wofi
|
||||
bindsym $mod+backslash exec ${pkgs.rofimoji}/bin/rofimoji --selector tofi
|
||||
'';
|
||||
};
|
||||
in
|
||||
@@ -39,14 +39,31 @@ in
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
rofimoji = prev.rofimoji.overrideAttrs (old: {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [ pkgs.wofi ];
|
||||
# postPatch =
|
||||
# old.postPatch
|
||||
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";
|
||||
rev = "615f00abeb984f3e648ef712164aa4e61f2e1808";
|
||||
};
|
||||
});
|
||||
})
|
||||
(final: prev: {
|
||||
tofi = prev.tofi.overrideAttrs (old: {
|
||||
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ pkgs.makeWrapper ];
|
||||
postInstall =
|
||||
old.postInstall or ""
|
||||
+ ''
|
||||
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}
|
||||
'';
|
||||
});
|
||||
})
|
||||
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user