topgit: fix build on FreeBSD

The BSD unices have a version of install(1) that doesn't support the -D flag. Grr.
This commit is contained in:
Peter Simons 2013-03-20 11:43:43 +01:00
parent 35520356fd
commit d28d3f37a8
1 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,9 @@ stdenv.mkDerivation rec {
configurePhase = "makeFlags=prefix=$out";
postInstall = ''
install -D README "$out/share/doc/${name}/README"
install -D contrib/tg-completion.bash "$out/etc/bash_completion.d/tg-completion.bash"
mkdir -p "$out/share/doc/${name}" "$out/etc/bash_completion.d/"
mv README "$out/share/doc/${name}/"
mv contrib/tg-completion.bash "$out/etc/bash_completion.d/"
'';
meta = {