2019-09-16 01:28:39 +00:00
|
|
|
let
|
2021-08-16 08:42:07 +00:00
|
|
|
fetchNixpkgs = { rev, sha256 }:
|
2019-11-07 20:57:00 +00:00
|
|
|
builtins.fetchTarball {
|
2020-12-06 21:42:20 +00:00
|
|
|
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
|
2019-11-07 20:57:00 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
2021-08-16 08:42:07 +00: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-16 01:28:39 +00:00
|
|
|
in
|
2019-01-26 18:12:08 +00:00
|
|
|
{
|
2021-08-16 08:42:07 +00:00
|
|
|
nixpkgs = fetch lockedInputs.nixpkgs;
|
2022-10-22 17:37:53 +00:00
|
|
|
nixpkgs-unstable = fetch lockedInputs.nixpkgs-unstable;
|
2019-01-26 18:12:08 +00:00
|
|
|
}
|