From 289f750e5b41cc4ff2c74c0fe3936eba8229b8f4 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 21 Jul 2023 21:10:18 -0400 Subject: [PATCH] fix: Don't install perf-tools on non-linux --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 2f75245..bae17f7 100644 --- a/flake.nix +++ b/flake.nix @@ -95,10 +95,12 @@ # Formatters nixfmt python311Packages.mdformat + ] ++ buildInputs ++ nativeBuildInputs + # Linux specific tools + ++ (lib.optionals pkgs.stdenv.isLinux [ # Profiling perf-tools - ] ++ buildInputs ++ nativeBuildInputs - ++ map (x: self.packages.${system}.${x}) rustPackageNames; + ]) ++ map (x: self.packages.${system}.${x}) rustPackageNames; in rec { # Main binary packages.${crateName} = naersk-lib.buildPackage {