nixpkgs/pkgs/development/libraries/pmdk/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

41 lines
983 B
Nix

{ stdenv, fetchFromGitHub
, autoconf, libndctl, pkg-config
}:
stdenv.mkDerivation rec {
pname = "pmdk";
version = "1.7";
src = fetchFromGitHub {
owner = "pmem";
repo = "pmdk";
rev = "refs/tags/${version}";
sha256 = "1833sq0f1msaqwn31dn1fp37a6d5zp995i9gkazanydmppi2qy0i";
};
nativeBuildInputs = [ autoconf pkg-config ];
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
};
}