-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Change local state dir, which must be writable, from "/nix/store…
…/...glusterfs..." to "/var"
- Loading branch information
Thomas Strobel
committed
Dec 18, 2014
1 parent
972868c
commit d07154b
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,19 +19,30 @@ stdenv.mkDerivation | |
rec { | ||
inherit (s) name version; | ||
inherit buildInputs; | ||
|
||
preConfigure = '' | ||
./autogen.sh | ||
''; | ||
|
||
configureFlags = [ | ||
''--with-mountutildir="$out/sbin"'' | ||
''--with-mountutildir="$out/sbin" --localstatedir=/var'' | ||
]; | ||
|
||
makeFlags = "DESTDIR=$(out)"; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nh2
Contributor
|
||
|
||
preInstall = '' | ||
substituteInPlace api/examples/Makefile --replace '$(DESTDIR)' $out | ||
substituteInPlace geo-replication/syncdaemon/Makefile --replace '$(DESTDIR)' $out | ||
substituteInPlace geo-replication/syncdaemon/Makefile --replace '$(DESTDIR)' $out | ||
substituteInPlace xlators/features/glupy/examples/Makefile --replace '$(DESTDIR)' $out | ||
substituteInPlace xlators/features/glupy/src/Makefile --replace '$(DESTDIR)' $out | ||
''; | ||
|
||
postInstall = '' | ||
cp -r $out/$out/* $out | ||
rm -r $out/nix | ||
''; | ||
|
||
src = fetchurl { | ||
inherit (s) url sha256; | ||
}; | ||
|
Does this make the
substituteInPlace
calls below unnecessary?