diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-11-15 11:32:45 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-12-31 01:31:52 +0100 |
commit | 91a1f2043f4b3df24c37e88ee5840499f9258462 (patch) | |
tree | 9277d3896a1467b0bbadc252a2d3cbcb52f8f4ba /pkgs/tools/security/sudo | |
parent | 15468f9a4b2a6cf31618d52561f202dbbc1fd2d9 (diff) |
sudo: fix for structured attrs
Diffstat (limited to 'pkgs/tools/security/sudo')
-rw-r--r-- | pkgs/tools/security/sudo/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/security/sudo/default.nix b/pkgs/tools/security/sudo/default.nix index a0922f4df738a..d2877a1ff1b27 100644 --- a/pkgs/tools/security/sudo/default.nix +++ b/pkgs/tools/security/sudo/default.nix @@ -41,6 +41,15 @@ stdenv.mkDerivation rec { "--with-passprompt=[sudo] password for %p: " # intentional trailing space ]; + installFlags = [ + "sudoers_uid=$(shell id -u)" + "sudoers_gid=$(shell id -g)" + "sysconfdir=${placeholder ''out''}/etc" + "rundir=$(TMPDIR)/dummy" + "vardir=$(TMPDIR)/dummy" + "DESTDIR=/" + ]; + postConfigure = '' cat >> pathnames.h <<'EOF' @@ -48,7 +57,6 @@ stdenv.mkDerivation rec { #define _PATH_MV "${coreutils}/bin/mv" EOF makeFlags="install_uid=$(id -u) install_gid=$(id -g)" - installFlags="sudoers_uid=$(id -u) sudoers_gid=$(id -g) sysconfdir=$out/etc rundir=$TMPDIR/dummy vardir=$TMPDIR/dummy DESTDIR=/" ''; nativeBuildInputs = [ groff ]; |