add flake-compat

This commit is contained in:
Julie B. 2021-06-27 11:09:11 +02:00
parent fdd4a3ae54
commit 08e8b6a0ba
3 changed files with 10 additions and 1 deletions

2
.envrc
View File

@ -1 +1 @@
use flake
use flake || use nix

8
lib/compat.nix Normal file
View File

@ -0,0 +1,8 @@
let
rev = "99f1c2157fba4bfe6211a321fd0ee43199025dbf";
flake-compat = fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${rev}.tar.gz";
sha256 = "0x2jn3vrawwv9xp15674wjz9pixwjyj3j771izayl962zziivbx2";
};
in
import flake-compat { src = ./..; }

1
shell.nix Normal file
View File

@ -0,0 +1 @@
(import lib/compat.nix).shellNix