-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
27 lines (27 loc) · 838 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
with builtins;
let
this-flake = import ./.;
flake =
this-flake.inputs.valiant or this-flake.inputs.bundle.inputs.valiant or (if (builtins
? getFlake) then
(getFlake "github:syvlorg/valiant")
else
(import fetchTarball (let
lockExists = pathExists ./flake.lock;
lock = if lockExists then
(fromJSON (readFile ./flake.lock))
else {
nodes.valiant.locked.rev = "main";
};
in {
url =
"https://github.com/syvlorg/valiant/archive/${lock.nodes.valiant.locked.rev}.tar.gz";
${if lockExists then "sha256" else null} =
lock.nodes.valiant.locked.narHash;
}) { src = ./.; }).defaultNix);
inherit (flake.${currentSystem}) pkgs;
in with pkgs;
mkShell rec {
buildInputs = [ valiant ];
nativeBuildInputs = buildInputs;
}