2023-05-28 22:00:48 +00:00
|
|
|
{ lib, pkgs }:
|
|
|
|
|
|
|
|
lib.makeScope pkgs.newScope (self:
|
|
|
|
let
|
|
|
|
gconf = pkgs.gnome2.GConf;
|
|
|
|
inherit (self) callPackage;
|
2023-10-28 14:55:53 +00:00
|
|
|
stdenv = if pkgs.stdenv.isDarwin
|
|
|
|
then pkgs.darwin.apple_sdk_11_0.stdenv
|
|
|
|
else pkgs.stdenv;
|
2023-08-25 22:18:25 +00:00
|
|
|
inheritedArgs = {
|
|
|
|
inherit gconf;
|
2023-09-02 04:20:00 +00:00
|
|
|
inherit stdenv;
|
2023-08-25 22:18:25 +00:00
|
|
|
|
|
|
|
inherit (pkgs.darwin) sigtool;
|
2023-09-07 18:06:55 +00:00
|
|
|
inherit (pkgs.darwin.apple_sdk_11_0) llvmPackages_14;
|
2023-08-29 17:52:53 +00:00
|
|
|
inherit (pkgs.darwin.apple_sdk_11_0.frameworks)
|
|
|
|
Accelerate AppKit Carbon Cocoa GSS ImageCaptureCore ImageIO IOKit OSAKit
|
|
|
|
Quartz QuartzCore UniformTypeIdentifiers WebKit;
|
2023-09-02 04:20:00 +00:00
|
|
|
gnutls =
|
|
|
|
if pkgs.stdenv.isDarwin
|
2023-10-28 14:55:53 +00:00
|
|
|
then pkgs.gnutls.override {
|
|
|
|
inherit stdenv;
|
|
|
|
inherit (pkgs.darwin.apple_sdk_11_0.frameworks) Security;
|
|
|
|
}
|
2023-09-02 04:20:00 +00:00
|
|
|
else pkgs.gnutls;
|
2023-08-25 22:18:25 +00:00
|
|
|
};
|
2023-05-28 22:00:48 +00:00
|
|
|
in {
|
|
|
|
sources = import ./sources.nix {
|
|
|
|
inherit lib;
|
|
|
|
inherit (pkgs)
|
|
|
|
fetchFromBitbucket
|
|
|
|
fetchFromSavannah;
|
|
|
|
};
|
|
|
|
|
2023-12-08 00:34:55 +00:00
|
|
|
emacs28 = callPackage (self.sources.emacs28) inheritedArgs;
|
|
|
|
|
|
|
|
emacs28-gtk2 = self.emacs28.override {
|
|
|
|
withGTK2 = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
emacs28-gtk3 = self.emacs28.override {
|
|
|
|
withGTK3 = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
emacs28-nox = pkgs.lowPrio (self.emacs28.override {
|
|
|
|
noGui = true;
|
|
|
|
});
|
|
|
|
|
2023-08-25 22:18:25 +00:00
|
|
|
emacs29 = callPackage (self.sources.emacs29) inheritedArgs;
|
2023-05-28 23:45:29 +00:00
|
|
|
|
|
|
|
emacs29-gtk3 = self.emacs29.override {
|
|
|
|
withGTK3 = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
emacs29-nox = self.emacs29.override {
|
|
|
|
noGui = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
emacs29-pgtk = self.emacs29.override {
|
|
|
|
withPgtk = true;
|
|
|
|
};
|
|
|
|
|
2023-12-08 00:34:55 +00:00
|
|
|
emacs28-macport = callPackage (self.sources.emacs28-macport) inheritedArgs;
|
|
|
|
|
2023-08-25 22:18:25 +00:00
|
|
|
emacs29-macport = callPackage (self.sources.emacs29-macport) inheritedArgs;
|
2023-05-28 22:00:48 +00:00
|
|
|
})
|