pmdk: init at 1.6
Intel is finally shipping real persistent memory, now that Optane DCPMMs are available with Cascade Lake processors. Therefore, programmers need a persistent memory programming API! In particular, pmdk is needed for QEMU features relating to persistent memory: by enabling pmdk as a dependency of QEMU, you can proxy NVDIMMs from the host system to virtual machines with the exact same consistency guarantees. (In the normal case, these host NVDIMMs can be used as a backend device for DAX-enabled filesystems, and the persistent memory given to the virtual machine can be represeted as objects in the filesystem, allowing granular distribution of non-volatile memory to clients.) Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
7fd1250b80
commit
8ace9e6a44
2 changed files with 42 additions and 0 deletions
40
pkgs/development/libraries/pmdk/default.nix
Normal file
40
pkgs/development/libraries/pmdk/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ stdenv, fetchFromGitHub
|
||||
, autoconf, libndctl, pkgconfig
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pmdk-${version}";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pmem";
|
||||
repo = "pmdk";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "11h9h5ifgaa5f6v9y77s5lmsj7k61qg52992s1361cmvl0ndgl9k";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoconf pkgconfig ];
|
||||
buildInputs = [ libndctl ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
outputs = [ "out" "lib" "dev" "man" ];
|
||||
|
||||
patchPhase = "patchShebangs utils";
|
||||
|
||||
installPhase = ''
|
||||
make install prefix=$out
|
||||
|
||||
mkdir -p $lib $dev $man/share
|
||||
mv $out/share/man $man/share/man
|
||||
mv $out/include $dev/include
|
||||
mv $out/lib $lib/lib
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Persistent Memory Development Kit";
|
||||
homepage = https://github.com/pmem/pmdk;
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ thoughtpolice ];
|
||||
platforms = [ "x86_64-linux" ]; # aarch64 is experimental
|
||||
};
|
||||
}
|
|
@ -8877,6 +8877,8 @@ in
|
|||
|
||||
pmd = callPackage ../development/tools/analysis/pmd { };
|
||||
|
||||
pmdk = callPackage ../development/libraries/pmdk { };
|
||||
|
||||
jdepend = callPackage ../development/tools/analysis/jdepend { };
|
||||
|
||||
fedpkg = pythonPackages.callPackage ../development/tools/fedpkg { };
|
||||
|
|
Loading…
Reference in a new issue