mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
28 lines
482 B
Nix
28 lines
482 B
Nix
|
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;
|
||
|
}
|