Skip to content

Commit

Permalink
dbench: fix wrong client.txt location
Browse files Browse the repository at this point in the history
(the path is hard-coded)
cc @bjornfor
  • Loading branch information
Mic92 committed Oct 13, 2017
1 parent 0ef6e21 commit 998f087
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/development/tools/misc/dbench/default.nix
Expand Up @@ -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; {
Expand Down

0 comments on commit 998f087

Please sign in to comment.