From f1311a0b680bec0d46307a4bd3fa84d914b44849 Mon Sep 17 00:00:00 2001 From: ThetaSinner Date: Fri, 20 Dec 2024 13:34:15 +0000 Subject: [PATCH] Only include go once --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 4becaea..5a66a15 100644 --- a/flake.nix +++ b/flake.nix @@ -99,9 +99,11 @@ }; # additional packages needed for build buildInputs = [ - pkgs.go pkgs.perl - ] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin + ] ++ (pkgs.lib.optionals pkgs.stdenv.isLinux + [ + pkgs.go + ]) ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [ (if pkgs.system == "x86_64-darwin" then pkgs.darwin.apple_sdk_11_0.stdenv.mkDerivation