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