fix: Don't install perf-tools on non-linux
This commit is contained in:
parent
08886afdac
commit
289f750e5b
|
@ -95,10 +95,12 @@
|
||||||
# Formatters
|
# Formatters
|
||||||
nixfmt
|
nixfmt
|
||||||
python311Packages.mdformat
|
python311Packages.mdformat
|
||||||
|
] ++ buildInputs ++ nativeBuildInputs
|
||||||
|
# Linux specific tools
|
||||||
|
++ (lib.optionals pkgs.stdenv.isLinux [
|
||||||
# Profiling
|
# Profiling
|
||||||
perf-tools
|
perf-tools
|
||||||
] ++ buildInputs ++ nativeBuildInputs
|
]) ++ map (x: self.packages.${system}.${x}) rustPackageNames;
|
||||||
++ map (x: self.packages.${system}.${x}) rustPackageNames;
|
|
||||||
in rec {
|
in rec {
|
||||||
# Main binary
|
# Main binary
|
||||||
packages.${crateName} = naersk-lib.buildPackage {
|
packages.${crateName} = naersk-lib.buildPackage {
|
||||||
|
|
Loading…
Reference in New Issue