fix: add zenity
file save dialogs are only provided by zenity on linux it seems
This commit is contained in:
parent
68964f24fd
commit
a786580da2
1 changed files with 11 additions and 3 deletions
14
flake.nix
14
flake.nix
|
|
@ -65,12 +65,16 @@
|
|||
// {
|
||||
inherit cargoArtifacts;
|
||||
|
||||
nativeBuildInputs = commonArgs.nativeBuildInputs ++ [
|
||||
pkgs.autoPatchelfHook
|
||||
];
|
||||
nativeBuildInputs =
|
||||
commonArgs.nativeBuildInputs
|
||||
++ [
|
||||
pkgs.autoPatchelfHook
|
||||
]
|
||||
++ lib.optional pkgs.stdenv.hostPlatform.isLinux pkgs.makeBinaryWrapper;
|
||||
|
||||
buildInputs = commonArgs.buildInputs ++ [
|
||||
pkgs.libgcc
|
||||
pkgs.zenity
|
||||
];
|
||||
|
||||
runtimeDependencies = dlDeps;
|
||||
|
|
@ -80,6 +84,10 @@
|
|||
postFixup = ''
|
||||
mkdir -p "$out/share/applications"
|
||||
ln -s "${desktopItem}"/share/applications/* "$out/share/applications/"
|
||||
''
|
||||
+ lib.optionalString pkgs.stdenv.hostPlatform.isLinux /* sh */ ''
|
||||
wrapProgram $out/${name} --inherit-argv0 \
|
||||
--prefix PATH : ${lib.makeBinPath [ pkgs.zenity ]}
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue