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.

authored by Gabriel Arazas and committed by Weijia Wang 092aaf84 df46b418

+7 -2
+7 -2
pkgs/by-name/gu/guix/package.nix
··· 28 28 , bzip2 29 29 , libgcrypt 30 30 , sqlite 31 + 32 + , stateDir ? "/var" 33 + , storeDir ? "/gnu/store" 34 + , confDir ? "/etc" 31 35 }: 32 36 33 37 stdenv.mkDerivation rec { ··· 100 104 ]; 101 105 102 106 configureFlags = [ 103 - "--localstatedir=/var" 104 - "--sysconfdir=/etc" 107 + "--with-store-dir=${storeDir}" 108 + "--localstatedir=${stateDir}" 109 + "--sysconfdir=${confDir}" 105 110 "--with-bash-completion-dir=$(out)/etc/bash_completion.d" 106 111 ]; 107 112