nix: add support for non-flake builds

This commit is contained in:
Mustafa Çalışkan
2022-01-09 09:08:39 +03:00
parent 5a09dcae68
commit 957cd29dbf
5 changed files with 50 additions and 10 deletions

View File

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