17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
25 sha256 = "sha256-gG1Rz5AtDLzikGFr8A3l25ypd+VoLw2oWjszy9ogDLk=";
51 (lib.mesonOption "rootprefix" "${placeholder "out"}")
52 (lib.mesonOption "sysconfdir" "${placeholder "out"}/etc/ndctl.conf.d")
53 (lib.mesonEnable "libtracefs" false)
54 # Use asciidoctor due to xmlto errors
55 (lib.mesonEnable "asciidoctor" true)
56 (lib.mesonEnable "systemd" false)
57 (lib.mesonOption "iniparserdir" "${iniparser}")
63 substituteInPlace git-version --replace-fail /bin/bash ${stdenv.shell}
64 substituteInPlace git-version-gen --replace-fail /bin/sh ${stdenv.shell}
66 echo "m4_define([GIT_VERSION], [${version}])" > version.m4;
70 description = "Tools for managing the Linux Non-Volatile Memory Device sub-system";
71 homepage = "https://github.com/pmem/ndctl";
72 license = lib.licenses.lgpl21;
73 maintainers = with lib.maintainers; [ thoughtpolice ];
74 platforms = lib.platforms.linux;