mirror of
https://github.com/larstvei/emacs-flake.git
synced 2025-08-30 16:50:13 +00:00
Compare commits
No commits in common. "89b8619b12bbd876b1958403c8afb22cfec6474e" and "333b8ade1ba8d1ed1537230fa5de52766e67d744" have entirely different histories.
89b8619b12
...
333b8ade1b
2
.github/workflows/cachix.yml
vendored
2
.github/workflows/cachix.yml
vendored
@ -26,6 +26,6 @@ jobs:
|
||||
|
||||
- name: Build and Push with Cachix
|
||||
run: |
|
||||
set -e
|
||||
nix develop
|
||||
set -e
|
||||
nix build --json | jq -r '.[].outputs | to_entries[].value' | cachix push larstvei
|
||||
|
25
flake.nix
25
flake.nix
@ -16,33 +16,23 @@
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
emacs-overlay,
|
||||
emacs-plus,
|
||||
emacs-config,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
{ self, nixpkgs, flake-utils, emacs-overlay, emacs-plus, emacs-config }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
emacs-overlay.overlays.emacs
|
||||
emacs-overlay.overlays.package
|
||||
];
|
||||
overlays =
|
||||
[ emacs-overlay.overlays.emacs emacs-overlay.overlays.package ];
|
||||
};
|
||||
patched-emacs = (pkgs.emacs-git).overrideAttrs (o: {
|
||||
patches = [
|
||||
"${emacs-plus}/patches/emacs-31/fix-window-role.patch"
|
||||
"${emacs-plus}/patches/emacs-31/round-undecorated-frame.patch"
|
||||
"${emacs-plus}/patches/emacs-31/system-appearance.patch"
|
||||
];
|
||||
});
|
||||
|
||||
in
|
||||
{
|
||||
in {
|
||||
defaultPackage = pkgs.emacsWithPackagesFromUsePackage {
|
||||
config = "${emacs-config}/init.org";
|
||||
package = patched-emacs;
|
||||
@ -56,6 +46,5 @@
|
||||
};
|
||||
|
||||
devShell = pkgs.mkShell { buildInputs = [ pkgs.jq ]; };
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user