From da2159548a3973ea92dca2f28ef73ce4ec773061 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 21 Feb 2012 15:07:39 +0000 Subject: [PATCH] nbd: avoid use of "install -D", which doesn't seem to work on FreeBSD svn path=/nixpkgs/trunk/; revision=32459 --- pkgs/tools/networking/nbd/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/nbd/default.nix b/pkgs/tools/networking/nbd/default.nix index cf3f41f7accb..929db0171525 100644 --- a/pkgs/tools/networking/nbd/default.nix +++ b/pkgs/tools/networking/nbd/default.nix @@ -13,7 +13,10 @@ stdenv.mkDerivation { buildInputs = [ pkgconfig glib ] ++ stdenv.lib.optional (stdenv ? glibc) stdenv.glibc.kernelHeaders; - postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"''; + postInstall = '' + mkdir -p "$out/share/doc/${name}" + cp README "$out/share/doc/${name}/README" + ''; # The test suite doesn't succeed on Hydra. doCheck = false;