Add shell.nix I forgot to commit

This commit is contained in:
Doron Behar 2021-05-15 16:37:19 +03:00
parent 30cc37e160
commit b8b236a09f

10
shell.nix Normal file
View file

@ -0,0 +1,10 @@
# https://nixos.wiki/wiki/Flakes#Using_flakes_project_from_a_legacy_Nix
(import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash; }
) {
src = ./.;
}).shellNix