diff options
author | Ryan Burns <rtburns@protonmail.com> | 2021-02-19 17:15:00 -0800 |
---|---|---|
committer | Ryan Burns <rtburns@protonmail.com> | 2021-02-19 21:12:42 -0800 |
commit | d84c45d40763d9c622e885c87701e6fb71f7e604 (patch) | |
tree | affc127f731ffdf19ea9cf8e24874a3b9dd73e67 /pkgs/os-specific/linux/numactl | |
parent | cb2bce709f4767db4b38e3920d0baa35336c4c57 (diff) | |
download | nixpkgs-d84c45d40763d9c622e885c87701e6fb71f7e604.tar nixpkgs-d84c45d40763d9c622e885c87701e6fb71f7e604.tar.gz nixpkgs-d84c45d40763d9c622e885c87701e6fb71f7e604.tar.bz2 nixpkgs-d84c45d40763d9c622e885c87701e6fb71f7e604.tar.lz nixpkgs-d84c45d40763d9c622e885c87701e6fb71f7e604.tar.xz nixpkgs-d84c45d40763d9c622e885c87701e6fb71f7e604.tar.zst nixpkgs-d84c45d40763d9c622e885c87701e6fb71f7e604.zip |
numactl: enable on all linux platforms
This is a dependency of building VMs for e.g. ppc64 and riscv64 platform. Also fixed an issue with linking libatomic on riscv.
Diffstat (limited to 'pkgs/os-specific/linux/numactl')
-rw-r--r-- | pkgs/os-specific/linux/numactl/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/numactl/default.nix b/pkgs/os-specific/linux/numactl/default.nix index d796bf579f1..2f8a4feb030 100644 --- a/pkgs/os-specific/linux/numactl/default.nix +++ b/pkgs/os-specific/linux/numactl/default.nix @@ -17,6 +17,8 @@ stdenv.mkDerivation rec { patchShebangs test ''; + LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic"; + # You probably shouldn't ever run these! They will reconfigure Linux # NUMA settings, which on my build machine makes the rest of package # building ~5% slower until reboot. Ugh! @@ -26,6 +28,6 @@ stdenv.mkDerivation rec { description = "Library and tools for non-uniform memory access (NUMA) machines"; homepage = "https://github.com/numactl/numactl"; license = with licenses; [ gpl2 lgpl21 ]; # libnuma is lgpl21 - platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ]; + platforms = platforms.linux; }; } |