feat(patches): Update nix-patches

This commit is contained in:
Tom Hubrecht 2024-01-22 12:46:25 +01:00
parent d84bc7b413
commit 5cbbdf2a08
2 changed files with 7 additions and 12 deletions

View file

@ -4,6 +4,8 @@ let
lib = import (sources.nix-lib + "/src/trivial.nix"); lib = import (sources.nix-lib + "/src/trivial.nix");
patch = import sources.nix-patches { patchFile = ./patches; };
mkNode = node: mkNode = node:
{ name, nodes, pkgs, ... }: { { name, nodes, pkgs, ... }: {
# Import the base configuration for each node # Import the base configuration for each node
@ -30,16 +32,9 @@ let
}; };
mkNixpkgs = node: mkNixpkgs = node:
let patch.mkNixpkgsSrc rec {
version = "nixos-${metadata.nodes.${node}.nixpkgs}";
pkgs = import sources.${version} { };
in pkgs.applyPatches {
name = "${version}-patched";
src = sources.${version}; src = sources.${version};
patches = (import sources.nix-patches { version = "nixos-${metadata.nodes.${node}.nixpkgs}";
inherit pkgs;
patchFile = ./patches;
}).mkPatches version;
}; };
mkNixpkgs' = node: import (mkNixpkgs node) { }; mkNixpkgs' = node: import (mkNixpkgs node) { };

View file

@ -119,10 +119,10 @@
}, },
"pre_releases": false, "pre_releases": false,
"version_upper_bound": null, "version_upper_bound": null,
"version": "v0.2.0", "version": "v0.3.0",
"revision": "6d47298262bd256b02281281ecf58bbf15ed21ba", "revision": "040fb5155c9199d3e6338bd8722a122b0bb7b93d",
"url": null, "url": null,
"hash": "14w7w327m8rf7yrjflqvbnmwx04l36n7j0nca5ilpvzrr8f2gg6l" "hash": "1bm2m067ipwnr9hi9d3v0z42357vn1gmgn6kk6r1r75w5zhfqy1f"
}, },
"nixos-23.11": { "nixos-23.11": {
"type": "Channel", "type": "Channel",