2007-06-28 22:14:25 +00:00
|
|
|
{stdenv, fetchurl, coreutils, pam}:
|
2007-06-20 09:34:42 +00:00
|
|
|
stdenv.mkDerivation {
|
2007-08-05 18:21:28 +00:00
|
|
|
name = "sudo-1.6.9";
|
2007-06-20 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-08-05 18:21:28 +00:00
|
|
|
url = ftp://sunsite.ualberta.ca/pub/Mirror/sudo/sudo-1.6.9p3.tar.gz;
|
|
|
|
md5 = "21791b0bfb14fe1dc508fdcfaae9bacc";
|
2007-06-20 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postConfigure = "sed -e '/_PATH_MV/d; /_PATH_VI/d' -i config.h ; echo '#define _PATH_MV \"/var/run/current-system/sw/bin/mv\"' >> config.h; echo '#define _PATH_VI \"/var/run/current-system/sw/bin/vi\"' >> config.h; echo '#define EDITOR _PATH_VI' >>config.h ";
|
|
|
|
|
|
|
|
makeFlags = " install_gid=nixbld install_uid=nixbld1 ";
|
|
|
|
|
|
|
|
installFlags = " sudoers_uid=nixbld1 sudoers_gid=nixbld sysconfdir=$(prefix)/etc ";
|
|
|
|
|
2007-06-28 22:14:25 +00:00
|
|
|
buildInputs = [coreutils pam];
|
2007-06-20 09:34:42 +00:00
|
|
|
}
|