From c21b3ae705fcd6870b05450fe07803e54f1fe79e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 21 Apr 2018 13:47:26 +0200 Subject: uucp as overlay --- custom/uucp.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'custom') 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 { }; in listToAttrs (map wrapper ["uucico" "uuxqt" "cu" "uucp" "uuname" "uustat" "uux"]); - nixpkgs.config.packageOverrides = pkgs: with pkgs; { - uucp = stdenv.lib.overrideDerivation uucp (oldAttrs: { + nixpkgs.config.overlays = [(self: super: { + uucp = super.stdenv.lib.overrideDerivation super.uucp (oldAttrs: { configureFlags = "--with-newconfigdir=/etc/uucp"; patches = [ - (pkgs.writeText "mailprogram" '' + (super.writeText "mailprogram" '' policy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) @@ -329,8 +329,8 @@ in { '') ]; }); - rmail = pkgs.writeScriptBin "rmail" '' - #!${pkgs.stdenv.shell} + rmail = super.writeScriptBin "rmail" '' + #!${super.stdenv.shell} # Dummy UUCP rmail command for postfix/qmail systems @@ -343,7 +343,7 @@ in { exec ${config.security.wrapperDir}/sendmail -G -i -f "$from" -- "$@" ''; - }; + })]; environment.systemPackages = with pkgs; [ uucp -- cgit v1.2.3