Merge pull request #246649 from amjoseph-nixpkgs/pr/libnvme/withDocs
This commit is contained in:
@@ -11,13 +11,15 @@
|
||||
, stdenv
|
||||
, swig
|
||||
, systemd
|
||||
# ImportError: cannot import name 'mlog' from 'mesonbuild'
|
||||
, withDocs ? stdenv.hostPlatform.canExecute stdenv.buildPlatform
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libnvme";
|
||||
version = "1.4";
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
outputs = [ "out" ] ++ lib.optionals withDocs [ "man" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linux-nvme";
|
||||
@@ -51,7 +53,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
mesonFlags = [
|
||||
"-Ddocs=man"
|
||||
"-Ddocs-build=true"
|
||||
(lib.mesonBool "docs-build" withDocs)
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
|
||||
Reference in New Issue
Block a user