Compare commits

..

No commits in common. "89b8619b12bbd876b1958403c8afb22cfec6474e" and "333b8ade1ba8d1ed1537230fa5de52766e67d744" have entirely different histories.

2 changed files with 8 additions and 19 deletions

View File

@ -26,6 +26,6 @@ jobs:
- name: Build and Push with Cachix - name: Build and Push with Cachix
run: | run: |
set -e
nix develop nix develop
set -e
nix build --json | jq -r '.[].outputs | to_entries[].value' | cachix push larstvei nix build --json | jq -r '.[].outputs | to_entries[].value' | cachix push larstvei

View File

@ -16,33 +16,23 @@
}; };
outputs = outputs =
{ { self, nixpkgs, flake-utils, emacs-overlay, emacs-plus, emacs-config }:
self, flake-utils.lib.eachDefaultSystem (system:
nixpkgs,
flake-utils,
emacs-overlay,
emacs-plus,
emacs-config,
}:
flake-utils.lib.eachDefaultSystem (
system:
let let
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
overlays = [ overlays =
emacs-overlay.overlays.emacs [ emacs-overlay.overlays.emacs emacs-overlay.overlays.package ];
emacs-overlay.overlays.package
];
}; };
patched-emacs = (pkgs.emacs-git).overrideAttrs (o: { patched-emacs = (pkgs.emacs-git).overrideAttrs (o: {
patches = [ patches = [
"${emacs-plus}/patches/emacs-31/fix-window-role.patch"
"${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"
]; ];
}); });
in in {
{
defaultPackage = pkgs.emacsWithPackagesFromUsePackage { defaultPackage = pkgs.emacsWithPackagesFromUsePackage {
config = "${emacs-config}/init.org"; config = "${emacs-config}/init.org";
package = patched-emacs; package = patched-emacs;
@ -56,6 +46,5 @@
}; };
devShell = pkgs.mkShell { buildInputs = [ pkgs.jq ]; }; devShell = pkgs.mkShell { buildInputs = [ pkgs.jq ]; };
} });
);
} }