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:
Gabriel Arazas 2023-10-29 15:03:42 +08:00 committed by Weijia Wang
parent df46b41895
commit 092aaf8418

View File

@ -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"
];