2019-09-15 18:28:39 -07:00
|
|
|
let
|
2021-08-16 01:42:07 -07:00
|
|
|
fetchNixpkgs = { rev, sha256 }:
|
2019-11-07 12:57:00 -08:00
|
|
|
builtins.fetchTarball {
|
2020-12-06 13:42:20 -08:00
|
|
|
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
|
2019-11-07 12:57:00 -08:00
|
|
|
inherit sha256;
|
|
|
|
};
|
2021-08-16 01:42:07 -07:00
|
|
|
|
|
|
|
fetch = input: let
|
|
|
|
inherit (input) locked;
|
|
|
|
in fetchNixpkgs {
|
|
|
|
inherit (locked) rev;
|
|
|
|
sha256 = locked.narHash;
|
|
|
|
};
|
|
|
|
|
|
|
|
lockedInputs = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes;
|
2019-09-15 18:28:39 -07:00
|
|
|
in
|
2019-01-26 10:12:08 -08:00
|
|
|
{
|
2021-08-16 01:42:07 -07:00
|
|
|
nixpkgs = fetch lockedInputs.nixpkgs;
|
2022-10-22 10:37:53 -07:00
|
|
|
nixpkgs-unstable = fetch lockedInputs.nixpkgs-unstable;
|
2019-01-26 10:12:08 -08:00
|
|
|
}
|