fix: Don't install perf-tools on non-linux

This commit is contained in:
Nathan McCarty 2023-07-21 21:10:18 -04:00
parent 08886afdac
commit 289f750e5b
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:3elIBybO7zXuCg+/os7OlO2fwfRPXmObQjcHXBf7Hfg
1 changed files with 4 additions and 2 deletions

View File

@ -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 {