From 092aaf841806e8a5fcdfea566bbaae2e25cea069 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 29 Oct 2023 15:03:42 +0800 Subject: [PATCH] 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. --- pkgs/by-name/gu/guix/package.nix | 9 +++++++-- 1 file 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" ];