mirror of
https://github.com/larstvei/emacs-flake.git
synced 2025-08-30 16:50:13 +00:00
Only patch for macos and unstable over git
This commit is contained in:
parent
09448b75a9
commit
1f969c1458
@ -34,18 +34,22 @@
|
|||||||
emacs-overlay.overlays.package
|
emacs-overlay.overlays.package
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
patched-emacs = (pkgs.emacs-git).overrideAttrs (o: {
|
|
||||||
|
emacsDarwin = (pkgs.emacs-unstable).overrideAttrs (_: {
|
||||||
patches = [
|
patches = [
|
||||||
"${emacs-plus}/patches/emacs-31/round-undecorated-frame.patch"
|
"${emacs-plus}/patches/emacs-31/round-undecorated-frame.patch"
|
||||||
"${emacs-plus}/patches/emacs-31/system-appearance.patch"
|
"${emacs-plus}/patches/emacs-31/system-appearance.patch"
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
emacsLinux = pkgs.emacs-unstable-pgtk;
|
||||||
|
|
||||||
|
emacsPkg = if pkgs.stdenv.isDarwin then emacsDarwin else emacsLinux;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
defaultPackage = pkgs.emacsWithPackagesFromUsePackage {
|
defaultPackage = pkgs.emacsWithPackagesFromUsePackage {
|
||||||
config = "${emacs-config}/init.org";
|
config = "${emacs-config}/init.org";
|
||||||
package = patched-emacs;
|
package = emacsPkg;
|
||||||
defaultInitFile = true;
|
defaultInitFile = true;
|
||||||
alwaysEnsure = true;
|
alwaysEnsure = true;
|
||||||
alwaysTangle = true;
|
alwaysTangle = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user