2019-04-07 06:40:12 +01:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, autoconf, libndctl, pkgconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pmdk";
|
2019-10-05 00:59:39 +01:00
|
|
|
version = "1.7";
|
2019-04-07 06:40:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pmem";
|
|
|
|
repo = "pmdk";
|
|
|
|
rev = "refs/tags/${version}";
|
2019-10-05 00:59:39 +01:00
|
|
|
sha256 = "1833sq0f1msaqwn31dn1fp37a6d5zp995i9gkazanydmppi2qy0i";
|
2019-04-07 06:40:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|