forked from mirrors/nixpkgs
sudo: fix for structured attrs
This commit is contained in:
parent
15468f9a4b
commit
91a1f2043f
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue