guix: add parameters for certain configure flags
This is in preparation for the Nix module where it will allow the user to set custom store and state directory.
This commit is contained in:
committed by
Weijia Wang
parent
df46b41895
commit
092aaf8418
@@ -28,6 +28,10 @@
|
||||
, bzip2
|
||||
, libgcrypt
|
||||
, sqlite
|
||||
|
||||
, stateDir ? "/var"
|
||||
, storeDir ? "/gnu/store"
|
||||
, confDir ? "/etc"
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -100,8 +104,9 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--localstatedir=/var"
|
||||
"--sysconfdir=/etc"
|
||||
"--with-store-dir=${storeDir}"
|
||||
"--localstatedir=${stateDir}"
|
||||
"--sysconfdir=${confDir}"
|
||||
"--with-bash-completion-dir=$(out)/etc/bash_completion.d"
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user