Colin
2da544a39e
``` • Updated input 'nixpkgs-unpatched': 'github:nixos/nixpkgs/897876e4c484f1e8f92009fd11b7d988a121a4e7' (2023-05-06) → 'github:nixos/nixpkgs/0470f36b02ef01d4f43c641bbf07020bcab71bf1' (2023-05-14) ```
29 lines
911 B
Nix
29 lines
911 B
Nix
{
|
|
inputs = {
|
|
# user is expected to define this from their flake via `inputs.nixpkgs.follows = ...`
|
|
nixpkgs = {};
|
|
};
|
|
outputs = { self, nixpkgs }@inputs:
|
|
let
|
|
patchedPkgsFor = system: nixpkgs.legacyPackages.${system}.applyPatches {
|
|
name = "nixpkgs-patched-uninsane";
|
|
src = nixpkgs;
|
|
patches = import ./list.nix {
|
|
inherit (nixpkgs.legacyPackages.${system}) fetchpatch fetchurl;
|
|
};
|
|
};
|
|
patchedFlakeFor = system: import "${patchedPkgsFor system}/flake.nix";
|
|
patchedFlakeOutputsFor = system:
|
|
(patchedFlakeFor system).outputs { inherit self; };
|
|
in
|
|
{
|
|
lib.nixosSystem = args: (patchedFlakeOutputsFor args.system).lib.nixosSystem args;
|
|
|
|
legacyPackages = builtins.mapAttrs
|
|
(system: _:
|
|
(patchedFlakeOutputsFor system).legacyPackages."${system}"
|
|
)
|
|
nixpkgs.legacyPackages;
|
|
};
|
|
}
|