chore(nix-patches): Add helper function
All checks were successful
build configuration / build_storage01 (push) Successful in 1m20s
build configuration / build_web02 (push) Successful in 1m25s
build configuration / build_vault01 (push) Successful in 1m27s
build configuration / build_compute01 (push) Successful in 1m32s
build configuration / build_krz01 (push) Successful in 1m38s
build configuration / build_web01 (push) Successful in 1m45s
lint / check (push) Successful in 24s
build configuration / build_geo01 (push) Successful in 1m7s
build configuration / build_rescue01 (push) Successful in 1m13s
build configuration / build_geo02 (push) Successful in 1m9s
build configuration / build_bridge01 (push) Successful in 1m5s
build configuration / push_to_cache_storage01 (push) Successful in 1m30s
build configuration / push_to_cache_web02 (push) Successful in 1m20s
build configuration / push_to_cache_vault01 (push) Successful in 1m35s
build configuration / push_to_cache_krz01 (push) Successful in 1m37s
build configuration / push_to_cache_compute01 (push) Successful in 2m0s
build configuration / push_to_cache_geo01 (push) Successful in 1m13s
build configuration / push_to_cache_web01 (push) Successful in 2m9s
build configuration / push_to_cache_rescue01 (push) Successful in 1m23s
build configuration / push_to_cache_geo02 (push) Successful in 1m14s
build configuration / push_to_cache_bridge01 (push) Successful in 1m13s
All checks were successful
build configuration / build_storage01 (push) Successful in 1m20s
build configuration / build_web02 (push) Successful in 1m25s
build configuration / build_vault01 (push) Successful in 1m27s
build configuration / build_compute01 (push) Successful in 1m32s
build configuration / build_krz01 (push) Successful in 1m38s
build configuration / build_web01 (push) Successful in 1m45s
lint / check (push) Successful in 24s
build configuration / build_geo01 (push) Successful in 1m7s
build configuration / build_rescue01 (push) Successful in 1m13s
build configuration / build_geo02 (push) Successful in 1m9s
build configuration / build_bridge01 (push) Successful in 1m5s
build configuration / push_to_cache_storage01 (push) Successful in 1m30s
build configuration / push_to_cache_web02 (push) Successful in 1m20s
build configuration / push_to_cache_vault01 (push) Successful in 1m35s
build configuration / push_to_cache_krz01 (push) Successful in 1m37s
build configuration / push_to_cache_compute01 (push) Successful in 2m0s
build configuration / push_to_cache_geo01 (push) Successful in 1m13s
build configuration / push_to_cache_web01 (push) Successful in 2m9s
build configuration / push_to_cache_rescue01 (push) Successful in 1m23s
build configuration / push_to_cache_geo02 (push) Successful in 1m14s
build configuration / push_to_cache_bridge01 (push) Successful in 1m13s
This commit is contained in:
parent
bfe4957926
commit
9bc651db42
2 changed files with 6 additions and 11 deletions
6
hive.nix
6
hive.nix
|
@ -2,10 +2,8 @@ let
|
|||
sources' = import ./npins;
|
||||
|
||||
# Patch sources directly
|
||||
sources = builtins.mapAttrs (
|
||||
name: src:
|
||||
(patch.base { pkgs = import sources'.nixos-unstable { }; }).applyPatches { inherit name src; }
|
||||
) sources';
|
||||
sources = builtins.mapAttrs (patch.base { pkgs = import sources'.nixos-unstable { }; })
|
||||
.applyPatches' sources';
|
||||
|
||||
lib = import (sources.nix-lib + "/src/trivial.nix");
|
||||
|
||||
|
|
|
@ -37,20 +37,15 @@
|
|||
rec {
|
||||
base =
|
||||
{ pkgs }:
|
||||
|
||||
let
|
||||
inherit (pkgs.lib) fakeHash optionalAttrs;
|
||||
in
|
||||
|
||||
rec {
|
||||
mkUrlPatch =
|
||||
attrs:
|
||||
pkgs.fetchpatch (
|
||||
{
|
||||
hash = fakeHash;
|
||||
hash = pkgs.lib.fakeHash;
|
||||
}
|
||||
// attrs
|
||||
// (optionalAttrs (excludeGitHubManual && !(builtins.hasAttr "includes" attrs)) {
|
||||
// (pkgs.lib.optionalAttrs (excludeGitHubManual && !(builtins.hasAttr "includes" attrs)) {
|
||||
excludes = (attrs.excludes or [ ]) ++ [ "nixos/doc/manual/*" ];
|
||||
})
|
||||
);
|
||||
|
@ -107,6 +102,8 @@ rec {
|
|||
|
||||
name = "${name}-patched";
|
||||
};
|
||||
|
||||
applyPatches' = name: src: applyPatches { inherit name src; };
|
||||
};
|
||||
|
||||
mkNixpkgsSrc = { src, name }: (base { pkgs = import src { }; }).applyPatches { inherit src name; };
|
||||
|
|
Loading…
Reference in a new issue