FIX: Change local state dir, which must be writable, from "/nix/store/...glusterfs..." to "/var"
This commit is contained in:
parent
972868c7e1
commit
d07154b3bc
|
@ -19,12 +19,17 @@ stdenv.mkDerivation
|
||||||
rec {
|
rec {
|
||||||
inherit (s) name version;
|
inherit (s) name version;
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
''--with-mountutildir="$out/sbin"''
|
''--with-mountutildir="$out/sbin" --localstatedir=/var''
|
||||||
];
|
];
|
||||||
|
|
||||||
|
makeFlags = "DESTDIR=$(out)";
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
substituteInPlace api/examples/Makefile --replace '$(DESTDIR)' $out
|
substituteInPlace api/examples/Makefile --replace '$(DESTDIR)' $out
|
||||||
substituteInPlace geo-replication/syncdaemon/Makefile --replace '$(DESTDIR)' $out
|
substituteInPlace geo-replication/syncdaemon/Makefile --replace '$(DESTDIR)' $out
|
||||||
|
@ -32,6 +37,12 @@ rec {
|
||||||
substituteInPlace xlators/features/glupy/examples/Makefile --replace '$(DESTDIR)' $out
|
substituteInPlace xlators/features/glupy/examples/Makefile --replace '$(DESTDIR)' $out
|
||||||
substituteInPlace xlators/features/glupy/src/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 {
|
src = fetchurl {
|
||||||
inherit (s) url sha256;
|
inherit (s) url sha256;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue