1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

dbench: fix wrong client.txt location

(the path is hard-coded)
cc @bjornfor
This commit is contained in:
Joerg Thalheim 2017-10-13 15:28:32 +01:00
parent 0ef6e215ff
commit 998f087fea

View file

@ -13,10 +13,18 @@ stdenv.mkDerivation rec {
preConfigure = ''
./autogen.sh
configureFlagsArray+=("--datadir=$out/share/dbench")
'';
postInstall = ''
cp -R loadfiles/ $out/share/
cp -R loadfiles/* $out/share/dbench/doc/dbench/loadfiles
# dbench looks here for the file
ln -s doc/dbench/loadfiles/client.txt $out/share/dbench/client.txt
# backwards compatible to older nixpkgs packaging introduced by
# 3f27be8e5d5861cd4b9487d6c5212d88bf24316d
ln -s dbench/doc/dbench/loadfiles $out/share/loadfiles
'';
meta = with stdenv.lib; {