nix: add support for non-flake builds
This commit is contained in:
9
packages/nix/flake-compat.nix
Normal file
9
packages/nix/flake-compat.nix
Normal 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 = ../..; }
|
Reference in New Issue
Block a user