1 { lib, stdenv, fetchFromGitHub, autoreconfHook
2 , asciidoc, pkg-config, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt
3 , json_c, kmod, which, util-linux, udev, keyutils
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "sha256-osux3DiKRh8ftHwyfFI+WSFx20+yJsg1nVx5nuoKJu4=";
17 outputs = [ "out" "lib" "man" "dev" ];
20 [ autoreconfHook asciidoc pkg-config xmlto docbook_xml_dtd_45 docbook_xsl libxslt
25 [ json_c kmod util-linux udev keyutils
31 "--disable-asciidoctor" # depends on ruby 2.7, use asciidoc instead
37 substituteInPlace git-version --replace /bin/bash ${stdenv.shell}
38 substituteInPlace git-version-gen --replace /bin/sh ${stdenv.shell}
40 echo "m4_define([GIT_VERSION], [${version}])" > version.m4;
44 description = "Tools for managing the Linux Non-Volatile Memory Device sub-system";
45 homepage = "https://github.com/pmem/ndctl";
46 license = licenses.lgpl21;
47 maintainers = with maintainers; [ thoughtpolice ];
48 platforms = platforms.linux;