2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-05-18 00:11:34 +01:00
|
|
|
, autoconf, libndctl, pkg-config, gnum4, pandoc
|
2019-04-07 06:40:12 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pmdk";
|
2021-05-18 00:11:34 +01:00
|
|
|
version = "1.9.2";
|
2019-04-07 06:40:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pmem";
|
|
|
|
repo = "pmdk";
|
|
|
|
rev = "refs/tags/${version}";
|
2021-05-18 00:11:34 +01:00
|
|
|
sha256 = "0awmkj6j9y2pbqqmp9ql00s7qa3mnpppa82dfy5324lindq0z8a1";
|
2019-04-07 06:40:12 +01:00
|
|
|
};
|
|
|
|
|
2021-05-18 00:11:34 +01:00
|
|
|
nativeBuildInputs = [ autoconf pkg-config gnum4 pandoc ];
|
2019-04-07 06:40:12 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-04-07 06:40:12 +01:00
|
|
|
description = "Persistent Memory Development Kit";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pmem/pmdk";
|
2019-04-07 06:40:12 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
platforms = [ "x86_64-linux" ]; # aarch64 is experimental
|
|
|
|
};
|
|
|
|
}
|