mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 16:40:12 +00:00
dbench: fix wrong client.txt location
(the path is hard-coded) cc @bjornfor
This commit is contained in:
parent
0ef6e215ff
commit
998f087fea
|
@ -13,10 +13,18 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
configureFlagsArray+=("--datadir=$out/share/dbench")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
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; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue