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