summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-04-27 13:41:18 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-04-27 13:41:18 +0200
commit22e40999c03f84365636ff65c5f3316512042910 (patch)
tree1876e5a7127cf46a9c8c533ae3f3f83782dbf676
parent09249524a67f9ea2e09ba0f20032fe519283feb4 (diff)
downloadnixos-22e40999c03f84365636ff65c5f3316512042910.tar
nixos-22e40999c03f84365636ff65c5f3316512042910.tar.gz
nixos-22e40999c03f84365636ff65c5f3316512042910.tar.bz2
nixos-22e40999c03f84365636ff65c5f3316512042910.tar.xz
nixos-22e40999c03f84365636ff65c5f3316512042910.zip
more concise rmail
-rw-r--r--custom/uucp.nix10
1 files changed, 1 insertions, 9 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix
index 2db1e3f8..ef10c3ca 100644
--- a/custom/uucp.nix
+++ b/custom/uucp.nix
@@ -168,9 +168,7 @@ in {
168 uucp = stdenv.lib.overrideDerivation uucp (oldAttrs: { 168 uucp = stdenv.lib.overrideDerivation uucp (oldAttrs: {
169 configureFlags = "--with-newconfigdir=/etc/uucp"; 169 configureFlags = "--with-newconfigdir=/etc/uucp";
170 }); 170 });
171 rmail = stdenv.mkDerivation { 171 rmail = pkgs.writeScriptBin "rmail" ''
172 name = "rmail";
173 src = pkgs.writeScript "rmail" ''
174 #!${pkgs.stdenv.shell} 172 #!${pkgs.stdenv.shell}
175 173
176 # Dummy UUCP rmail command for postfix/qmail systems 174 # Dummy UUCP rmail command for postfix/qmail systems
@@ -184,12 +182,6 @@ in {
184 182
185 exec /var/setuid-wrappers/sendmail -i -f "$from" -- "$@" 183 exec /var/setuid-wrappers/sendmail -i -f "$from" -- "$@"
186 ''; 184 '';
187 builder = pkgs.writeScript "builder" ''
188 #!${stdenv.shell}
189 mkdir -p $out/bin
190 ln -s $src $out/bin/rmail
191 '';
192 };
193 }; 185 };
194 186
195 environment.systemPackages = with pkgs; [ 187 environment.systemPackages = with pkgs; [