From b2fae2486e42f967aa465e91fd596280aeca7798 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sat, 28 Oct 2023 11:55:53 -0300 Subject: [PATCH] emacs: small rewrite --- pkgs/applications/editors/emacs/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/emacs/default.nix b/pkgs/applications/editors/emacs/default.nix index a6c446ba5e46..29e2c2d85f49 100644 --- a/pkgs/applications/editors/emacs/default.nix +++ b/pkgs/applications/editors/emacs/default.nix @@ -4,7 +4,9 @@ lib.makeScope pkgs.newScope (self: let gconf = pkgs.gnome2.GConf; inherit (self) callPackage; - stdenv = if pkgs.stdenv.isDarwin then pkgs.darwin.apple_sdk_11_0.stdenv else pkgs.stdenv; + stdenv = if pkgs.stdenv.isDarwin + then pkgs.darwin.apple_sdk_11_0.stdenv + else pkgs.stdenv; inheritedArgs = { inherit gconf; inherit stdenv; @@ -16,7 +18,10 @@ lib.makeScope pkgs.newScope (self: Quartz QuartzCore UniformTypeIdentifiers WebKit; gnutls = if pkgs.stdenv.isDarwin - then pkgs.gnutls.override { inherit stdenv; inherit (pkgs.darwin.apple_sdk_11_0.frameworks) Security; } + then pkgs.gnutls.override { + inherit stdenv; + inherit (pkgs.darwin.apple_sdk_11_0.frameworks) Security; + } else pkgs.gnutls; }; in {