Unverified Commit ca610a45 authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #246649 from amjoseph-nixpkgs/pr/libnvme/withDocs

parents 06e97392 3901f0c8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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 = ''