diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-21 13:47:26 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-21 13:47:26 +0200 |
| commit | c21b3ae705fcd6870b05450fe07803e54f1fe79e (patch) | |
| tree | 166085b563c9cf8790dea0e6f99834649264afcf /custom | |
| parent | 0122a1530c5ee224707ccfe13a51591ea5063553 (diff) | |
| download | nixos-c21b3ae705fcd6870b05450fe07803e54f1fe79e.tar nixos-c21b3ae705fcd6870b05450fe07803e54f1fe79e.tar.gz nixos-c21b3ae705fcd6870b05450fe07803e54f1fe79e.tar.bz2 nixos-c21b3ae705fcd6870b05450fe07803e54f1fe79e.tar.xz nixos-c21b3ae705fcd6870b05450fe07803e54f1fe79e.zip | |
uucp as overlay
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/uucp.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix index 0ae99f91..e1e59f84 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix | |||
| @@ -305,11 +305,11 @@ in { | |||
| 305 | }; | 305 | }; |
| 306 | in listToAttrs (map wrapper ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]); | 306 | in listToAttrs (map wrapper ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]); |
| 307 | 307 | ||
| 308 | nixpkgs.config.packageOverrides = pkgs: with pkgs; { | 308 | nixpkgs.config.overlays = [(self: super: { |
| 309 | uucp = stdenv.lib.overrideDerivation uucp (oldAttrs: { | 309 | uucp = super.stdenv.lib.overrideDerivation super.uucp (oldAttrs: { |
| 310 | configureFlags = "--with-newconfigdir=/etc/uucp"; | 310 | configureFlags = "--with-newconfigdir=/etc/uucp"; |
| 311 | patches = [ | 311 | patches = [ |
| 312 | (pkgs.writeText "mailprogram" '' | 312 | (super.writeText "mailprogram" '' |
| 313 | policy.h | 2 +- | 313 | policy.h | 2 +- |
| 314 | 1 file changed, 1 insertion(+), 1 deletion(-) | 314 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 315 | 315 | ||
| @@ -329,8 +329,8 @@ in { | |||
| 329 | '') | 329 | '') |
| 330 | ]; | 330 | ]; |
| 331 | }); | 331 | }); |
| 332 | rmail = pkgs.writeScriptBin "rmail" '' | 332 | rmail = super.writeScriptBin "rmail" '' |
| 333 | #!${pkgs.stdenv.shell} | 333 | #!${super.stdenv.shell} |
| 334 | 334 | ||
| 335 | # Dummy UUCP rmail command for postfix/qmail systems | 335 | # Dummy UUCP rmail command for postfix/qmail systems |
| 336 | 336 | ||
| @@ -343,7 +343,7 @@ in { | |||
| 343 | 343 | ||
| 344 | exec ${config.security.wrapperDir}/sendmail -G -i -f "$from" -- "$@" | 344 | exec ${config.security.wrapperDir}/sendmail -G -i -f "$from" -- "$@" |
| 345 | ''; | 345 | ''; |
| 346 | }; | 346 | })]; |
| 347 | 347 | ||
| 348 | environment.systemPackages = with pkgs; [ | 348 | environment.systemPackages = with pkgs; [ |
| 349 | uucp | 349 | uucp |
