1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

nbd: add which to buildInputs (#46635)

* NBD: add which to buildInputs.
* NBD: move pkgconfig and which to nativeBuildInputs.
This commit is contained in:
qolii 2018-09-14 17:05:40 +00:00 committed by xeji
parent 61b2e0cba8
commit 3c57887f64

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, glib }:
{ stdenv, fetchurl, pkgconfig, glib, which }:
stdenv.mkDerivation rec {
name = "nbd-3.18";
@ -8,10 +8,11 @@ stdenv.mkDerivation rec {
sha256 = "0cb0sjiv0j9sh9dk24nrjm7sa0axbrcp2av5hc91g1ryzk764dyq";
};
buildInputs =
[ pkgconfig glib ]
buildInputs = [ glib ]
++ stdenv.lib.optional (stdenv ? glibc) stdenv.glibc.linuxHeaders;
nativeBuildInputs = [ pkgconfig which ];
postInstall = ''
mkdir -p "$out/share/doc/${name}"
cp README.md "$out/share/doc/${name}/"