Skip to content

Commit

Permalink
Revert "Use withPgtk option to fix failing emacsPgtk build"
Browse files Browse the repository at this point in the history
  • Loading branch information
leungbk authored Sep 6, 2022
1 parent 8270478 commit 7d143d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let
super.emacs
[

(drv: drv.override ({ srcRepo = true; withSQLite3 = true; withWebP = true; } // args))
(drv: drv.override ({ srcRepo = true; } // args))

(
drv: drv.overrideAttrs (
Expand Down Expand Up @@ -75,20 +75,28 @@ let
)
];

emacsGit = mkGitEmacs "emacs-git" ./repos/emacs/emacs-master.json { nativeComp = false; };
mkPgtkEmacs = namePrefix: jsonFile: { ... }@args: (mkGitEmacs namePrefix jsonFile args).overrideAttrs (
old: {
configureFlags = (super.lib.remove "--with-xft" old.configureFlags)
++ super.lib.singleton "--with-pgtk";
}
);

emacsGit = mkGitEmacs "emacs-git" ./repos/emacs/emacs-master.json { withSQLite3 = true; withWebP = true; };

# TODO: The default value of nativeComp was changed from false to true in June 2022. Remove "nativeComp = true;" when 22.11 is stable.
emacsNativeComp = super.emacsNativeComp or (mkGitEmacs "emacs-native-comp" ./repos/emacs/emacs-unstable.json { nativeComp = true; });

emacsGitNativeComp = mkGitEmacs "emacs-git-native-comp" ./repos/emacs/emacs-master.json {
withSQLite3 = true;
withWebP = true;
nativeComp = true;
};

emacsPgtk = mkGitEmacs "emacs-pgtk" ./repos/emacs/emacs-master.json { withPgtk = true; nativeComp = false; };
emacsPgtk = mkPgtkEmacs "emacs-pgtk" ./repos/emacs/emacs-master.json { withSQLite3 = true; };

emacsPgtkNativeComp = mkGitEmacs "emacs-pgtk-native-comp" ./repos/emacs/emacs-master.json { nativeComp = true; withPgtk = true; };
emacsPgtkNativeComp = mkPgtkEmacs "emacs-pgtk-native-comp" ./repos/emacs/emacs-master.json { nativeComp = true; withSQLite3 = true; };

emacsUnstable = (mkGitEmacs "emacs-unstable" ./repos/emacs/emacs-unstable.json { nativeComp = false; });
emacsUnstable = (mkGitEmacs "emacs-unstable" ./repos/emacs/emacs-unstable.json { });

in
{
Expand Down
2 changes: 1 addition & 1 deletion repos/emacs/emacs-master.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"type": "savannah", "repo": "emacs", "rev": "b648634982bb52be2b21e92d4aeb837621b5ec63", "sha256": "0bg20qjbjg6a50yakj2g74hqm95imhmj5svk20b0r6lrlhvhza48", "version": "20220905.0"}
{"type": "savannah", "repo": "emacs", "rev": "e13509468b7cc733c3511310d999554e6bcda708", "sha256": "1865y9p1b338782pxgsnwm299p0qsp2a3xspnqrfsb5h10dmd0ap", "version": "20220903.0"}

0 comments on commit 7d143d6

Please sign in to comment.