diff --git a/flake.nix b/flake.nix index 457f083..6be3127 100644 --- a/flake.nix +++ b/flake.nix @@ -55,7 +55,7 @@ inherit src cargoVendorDir; strictDeps = true; - buildInputs = with pkgs; [ + buildInputs = with pkgs; (lib.optionals stdenv.isLinux [ libGL libxkbcommon vulkan-loader @@ -72,7 +72,7 @@ libappindicator-gtk3 xdotool zlib - ]; + ]); }; cargoArtifacts = craneLib.buildDepsOnly commonArgs; @@ -105,13 +105,14 @@ src = fileSetForCrate ./crates/gcfeeder; cargoExtraArgs = "-p gcfeeder --no-default-features"; - nativeBuildInputs = with pkgs; [ + nativeBuildInputs = with pkgs; ([ copyDesktopItems makeWrapper + ] ++ lib.optionals stdenv.isLinux [ # Required for tray-icon. pkg-config - ]; + ]); postInstall = '' wrapProgram $out/bin/gcfeeder \