mirror of
https://github.com/SebastianWendel/srx-platform-nix.git
synced 2024-09-19 20:09:02 +02:00
15 lines
388 B
Nix
15 lines
388 B
Nix
{ system ? builtins.currentSystem, src ? ./. }:
|
|
let
|
|
inherit (lock.nodes.flake-compat.locked) owner repo rev narHash;
|
|
|
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
|
|
flake-compat = fetchTarball {
|
|
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
|
|
sha256 = narHash;
|
|
};
|
|
|
|
flake = import flake-compat { inherit src system; };
|
|
in
|
|
flake.defaultNix
|