2024-11-03 21:34:38 +01:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
flake = {
|
|
|
|
nixpkgs-patched =
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import inputs.nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
pkgs.stdenvNoCC.mkDerivation {
|
|
|
|
name = "Nixpkgs with patches from open PRs";
|
|
|
|
src = inputs.nixpkgs;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
|
|
|
dontFixup = true;
|
|
|
|
installPhase = ''
|
|
|
|
cp -r ./ $out
|
|
|
|
'';
|
2024-11-10 16:22:05 +01:00
|
|
|
patches =
|
|
|
|
if builtins.pathExists ../patches then pkgs.lib.filesystem.listFilesRecursive ../patches else [ ];
|
2024-11-03 21:34:38 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|