diff --git a/pkgs/os-specific/linux/numactl/default.nix b/pkgs/os-specific/linux/numactl/default.nix new file mode 100644 index 000000000000..1d7f5103b667 --- /dev/null +++ b/pkgs/os-specific/linux/numactl/default.nix @@ -0,0 +1,21 @@ +{ fetchurl, stdenv }: + +stdenv.mkDerivation rec { + name = "numactl-1.0.2"; + src = fetchurl { + url = "ftp://oss.sgi.com/www/projects/libnuma/download/${name}.tar.gz"; + sha256 = "0hbrrh7a8cradj1xdl3wvyp9afx1hzsk90g2lkwd5pn6bniai31j"; + }; + + patchPhase = '' + sed -i "Makefile" -es"|^ *prefix *:=.*$|prefix := $out|g" + ''; + + meta = { + description = "Library and tools for non-uniform memory access (NUMA) machines"; + license = [ "LGPLv2.1" # library + "GPLv2" # command-line tools + ]; + homepage = http://oss.sgi.com/projects/libnuma/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d05333c1f4e9..b5f53210e88d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4457,6 +4457,10 @@ let pkgs = rec { inherit fetchurl stdenv; }; + numactl = import ../os-specific/linux/numactl { + inherit fetchurl stdenv; + }; + nvidiaDrivers = import ../os-specific/linux/nvidia { inherit stdenv fetchurl kernel xlibs gtkLibs; };