nixpkgs-suyu/pkgs/development/libraries/libndctl/default.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

2018-05-30 01:31:16 +02:00
{ stdenv, fetchFromGitHub, autoreconfHook, autoconf, automake, asciidoc, docbook_xsl, docbook_xml_dtd_45, libxslt, xmlto, pkgconfig, json_c, kmod, which, systemd, utillinux
}:
let
version = "61.1";
2018-05-30 01:31:16 +02:00
in stdenv.mkDerivation rec {
name = "libndctl-${version}";
src = fetchFromGitHub {
owner = "pmem";
repo = "ndctl";
rev = "v${version}";
sha256 = "1k996p757nwvkg86firx0yh39dsa9jx5w14rlfl4hlg2h9kkivnx";
2018-05-30 01:31:16 +02:00
};
outputs = [ "out" "man" "dev" ];
nativeBuildInputs = [
autoreconfHook asciidoc pkgconfig xmlto docbook_xml_dtd_45 docbook_xsl libxslt
];
buildInputs = [
json_c kmod systemd utillinux
];
preAutoreconf = ''
substituteInPlace configure.ac --replace "which" "${which}/bin/which"
substituteInPlace git-version --replace /bin/bash ${stdenv.shell}
substituteInPlace git-version-gen --replace /bin/sh ${stdenv.shell}
echo "m4_define([GIT_VERSION], [${version}])" > version.m4;
'';
meta = with stdenv.lib; {
description = "Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel";
homepage = https://github.com/pmem/ndctl;
license = licenses.lgpl21;
maintainers = with maintainers; [];
platforms = platforms.linux;
};
}