Skip to content

Commit

Permalink
fix(nix): only use linux deps on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirius902 committed Feb 2, 2025
1 parent 7a07102 commit df77da8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
inherit src cargoVendorDir;
strictDeps = true;

buildInputs = with pkgs; [
buildInputs = with pkgs; (lib.optionals stdenv.isLinux [
libGL
libxkbcommon
vulkan-loader
Expand All @@ -72,7 +72,7 @@
libappindicator-gtk3
xdotool
zlib
];
]);
};

cargoArtifacts = craneLib.buildDepsOnly commonArgs;
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit df77da8

Please sign in to comment.