Skip to content

Commit

Permalink
Include a patch for upstream melpa2nix fix in nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Jan 12, 2024
1 parent 5696620 commit 02d9796
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
13 changes: 13 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"emacs-29-1" = { url = "https://ftp.gnu.org/gnu/emacs/emacs-29.1.tar.xz"; flake = false; };
emacs-snapshot = { url = "github:emacs-mirror/emacs"; flake = false; };
emacs-release-snapshot = { url = "github:emacs-mirror/emacs?ref=emacs-29"; flake = false; };

melpa2nix-patch = { url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/276943.patch"; flake = false; };
};

nixConfig = {
Expand Down Expand Up @@ -93,9 +95,16 @@
checks = builtins.mapAttrs
(system:
builtins.mapAttrs (_name: ciEmacs:
nixpkgs.legacyPackages.${system}.callPackage ./tests {
inherit ciEmacs;
})
let
patchedNixpkgs = system: import (nixpkgs.legacyPackages.${system}.applyPatches {
name = "nixpkgs-patched";
src = nixpkgs;
patches = inputs.melpa2nix-patch;
}) { inherit system; };
in
(patchedNixpkgs system).callPackage ./tests {
inherit ciEmacs;
})
)
self.packages;

Expand Down

0 comments on commit 02d9796

Please sign in to comment.