nixpatches: move the list to the nixpatches flake instead of injecting it

This commit is contained in:
colin 2023-01-16 06:46:59 +00:00
parent b4e19c037e
commit 016384aa2b
3 changed files with 6 additions and 13 deletions

View File

@ -56,17 +56,16 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs-unpatched" "nixpkgs-unpatched"
], ]
"patches": []
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-d3XSehPFkNwvwlOYy7gch0NLxOgdXuV7j5r/Qsn7kHc=", "narHash": "sha256-ERkw+xJQ2mZMztI8hzWjilnvHQtKHslNyuG9TXM/lCI=",
"path": "/nix/store/wq6rmmnd7yhw9w44k54w4x5v63ah1psr-source/nixpatches", "path": "/nix/store/zy5rd2m4ww1wwllfq8sgwvdslganf1ks-source/nixpatches",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/wq6rmmnd7yhw9w44k54w4x5v63ah1psr-source/nixpatches", "path": "/nix/store/zy5rd2m4ww1wwllfq8sgwvdslganf1ks-source/nixpatches",
"type": "path" "type": "path"
} }
}, },

View File

@ -26,8 +26,6 @@
nixpkgs = { nixpkgs = {
url = "./nixpatches"; url = "./nixpatches";
inputs.nixpkgs.follows = "nixpkgs-unpatched"; inputs.nixpkgs.follows = "nixpkgs-unpatched";
# TODO: remove this dependency injection: it's from when we used url = path:...
inputs.patches.follows = "";
}; };
mobile-nixos = { mobile-nixos = {
# <https://github.com/nixos/mobile-nixos> # <https://github.com/nixos/mobile-nixos>
@ -187,9 +185,6 @@
description = "python environment for data processing"; description = "python environment for data processing";
}; };
}; };
# unofficial output; used by inputs.nixpatches
nixpatches = import ./nixpatches/list.nix;
}; };
} }

View File

@ -1,14 +1,13 @@
{ {
inputs = { inputs = {
nixpkgs = {}; nixpkgs = {};
patches = {};
}; };
outputs = { self, nixpkgs, patches }@inputs: outputs = { self, nixpkgs }@inputs:
let let
patchedPkgsFor = system: nixpkgs.legacyPackages.${system}.applyPatches { patchedPkgsFor = system: nixpkgs.legacyPackages.${system}.applyPatches {
name = "nixpkgs-patched-uninsane"; name = "nixpkgs-patched-uninsane";
src = nixpkgs; src = nixpkgs;
patches = inputs.patches.nixpatches { patches = import ./list.nix {
inherit (nixpkgs.legacyPackages.${system}) fetchpatch; inherit (nixpkgs.legacyPackages.${system}) fetchpatch;
inherit (nixpkgs.lib) fakeHash; inherit (nixpkgs.lib) fakeHash;
}; };