libndctl: 61.2 -> 63
This also adds me as the maintainer (as it lacked one previously), and simplifies the expression quite a bit. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
8a1127a7c9
commit
d01b0f9d2e
@ -1,52 +1,49 @@
|
|||||||
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, asciidoc, docbook_xsl, docbook_xml_dtd_45, libxslt, xmlto, pkgconfig, json_c, kmod, which, systemd, utillinux
|
{ stdenv, fetchFromGitHub, autoreconfHook
|
||||||
|
, asciidoctor, pkgconfig, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt
|
||||||
|
, json_c, kmod, which, file, utillinux, systemd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
version = "61.2";
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "libndctl-${version}";
|
name = "libndctl-${version}";
|
||||||
|
version = "63";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pmem";
|
owner = "pmem";
|
||||||
repo = "ndctl";
|
repo = "ndctl";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0vid78jzhmzh505bpwn8mvlamfhcvl6rlfjc29y4yn7zslpydxl7";
|
sha256 = "060nsza8xic769bxj3pvl70a9885bwrc0myw16l095i3z6w7yzwq";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "man" "dev" ];
|
outputs = [ "out" "lib" "man" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs =
|
||||||
autoreconfHook asciidoc pkgconfig xmlto docbook_xml_dtd_45 docbook_xsl libxslt
|
[ autoreconfHook asciidoctor pkgconfig xmlto docbook_xml_dtd_45 docbook_xsl libxslt
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs =
|
||||||
json_c kmod systemd utillinux
|
[ json_c kmod utillinux systemd
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
configureFlags =
|
||||||
(fetchpatch {
|
[ "--without-bash"
|
||||||
name = "add-missing-include-for-ssize_t.patch";
|
"--without-systemd"
|
||||||
url = "https://github.com/pmem/ndctl/commit/8f1798d14dda367c659b87362edb312739830ddf.patch";
|
];
|
||||||
sha256 = "1jr5kh087938msl22hgjngbf025n9iplz0czmybfp7lavl73m0pm";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
patchPhase = ''
|
||||||
patchShebangs test
|
patchShebangs test
|
||||||
'';
|
|
||||||
|
|
||||||
preAutoreconf = ''
|
|
||||||
substituteInPlace configure.ac --replace "which" "${which}/bin/which"
|
substituteInPlace configure.ac --replace "which" "${which}/bin/which"
|
||||||
|
|
||||||
substituteInPlace git-version --replace /bin/bash ${stdenv.shell}
|
substituteInPlace git-version --replace /bin/bash ${stdenv.shell}
|
||||||
substituteInPlace git-version-gen --replace /bin/sh ${stdenv.shell}
|
substituteInPlace git-version-gen --replace /bin/sh ${stdenv.shell}
|
||||||
|
|
||||||
echo "m4_define([GIT_VERSION], [${version}])" > version.m4;
|
echo "m4_define([GIT_VERSION], [${version}])" > version.m4;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel";
|
description = "Tools for managing the Linux Non-Volatile Memory Device sub-system";
|
||||||
homepage = https://github.com/pmem/ndctl;
|
homepage = https://github.com/pmem/ndctl;
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
maintainers = with maintainers; [];
|
maintainers = with maintainers; [ thoughtpolice ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user