diff options
author | Gabriel Arazas <foodogsquared@foodogsquared.one> | 2023-10-29 15:03:42 +0800 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-12-01 09:07:33 +0100 |
commit | 092aaf841806e8a5fcdfea566bbaae2e25cea069 (patch) | |
tree | 6e13ae97bfa9656f57c30d5ee6ef0fa638d11abb | |
parent | df46b418951994499f8b6c4cc12db65f807ea50f (diff) | |
download | nixlib-092aaf841806e8a5fcdfea566bbaae2e25cea069.tar nixlib-092aaf841806e8a5fcdfea566bbaae2e25cea069.tar.gz nixlib-092aaf841806e8a5fcdfea566bbaae2e25cea069.tar.bz2 nixlib-092aaf841806e8a5fcdfea566bbaae2e25cea069.tar.lz nixlib-092aaf841806e8a5fcdfea566bbaae2e25cea069.tar.xz nixlib-092aaf841806e8a5fcdfea566bbaae2e25cea069.tar.zst nixlib-092aaf841806e8a5fcdfea566bbaae2e25cea069.zip |
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.
-rw-r--r-- | pkgs/by-name/gu/guix/package.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/by-name/gu/guix/package.nix b/pkgs/by-name/gu/guix/package.nix index 358c82ffa8d2..6549a9b8e276 100644 --- a/pkgs/by-name/gu/guix/package.nix +++ b/pkgs/by-name/gu/guix/package.nix @@ -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" ]; |