2024-10-01 03:59:38 +00:00
|
|
|
let
|
|
|
|
pinnedNixpkgs = builtins.fromJSON (builtins.readFile ./pinned-nixpkgs.json);
|
|
|
|
in
|
|
|
|
{
|
|
|
|
system ? builtins.currentSystem,
|
|
|
|
|
|
|
|
nixpkgs ? null,
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
nixpkgs' =
|
|
|
|
if nixpkgs == null then
|
|
|
|
fetchTarball {
|
|
|
|
url = "https://github.com/NixOS/nixpkgs/archive/${pinnedNixpkgs.rev}.tar.gz";
|
|
|
|
sha256 = pinnedNixpkgs.sha256;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
nixpkgs;
|
|
|
|
|
|
|
|
pkgs = import nixpkgs' {
|
|
|
|
inherit system;
|
|
|
|
config = { };
|
|
|
|
overlays = [ ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit pkgs;
|
2024-10-03 23:49:44 +00:00
|
|
|
requestReviews = pkgs.callPackage ./request-reviews { };
|
2024-10-03 23:50:36 +00:00
|
|
|
codeownersValidator = pkgs.callPackage ./codeowners-validator { };
|
2024-10-01 03:59:38 +00:00
|
|
|
}
|