Skip to content

Commit

Permalink
nbd: add which to buildInputs (#46635)
Browse files Browse the repository at this point in the history
* NBD: add which to buildInputs.
* NBD: move pkgconfig and which to nativeBuildInputs.
  • Loading branch information
qolii authored and xeji committed Sep 14, 2018
1 parent 61b2e0c commit 3c57887
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/tools/networking/nbd/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, glib }:
{ stdenv, fetchurl, pkgconfig, glib, which }:

stdenv.mkDerivation rec {
name = "nbd-3.18";
Expand All @@ -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}/"
Expand Down

0 comments on commit 3c57887

Please sign in to comment.