Skip to content

Commit

Permalink
Use upstream withPgtk input attribute and remove mkPgtkEmacs
Browse files Browse the repository at this point in the history
  • Loading branch information
leungbk committed Sep 16, 2022
1 parent ca91042 commit 3cba3fe
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ let
)
];

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 { };

emacsNativeComp = super.emacsNativeComp or (mkGitEmacs "emacs-native-comp" ./repos/emacs/emacs-unstable.json { nativeComp = true; });
Expand All @@ -90,9 +83,9 @@ let
nativeComp = true;
};

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

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

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

Expand Down

0 comments on commit 3cba3fe

Please sign in to comment.