From cd78180fc414f820f64a889598a3a7ef92ce7e38 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 20 Apr 2021 18:00:55 -0400 Subject: [PATCH] Add default.nix for legacy nix --- default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..873ece4 --- /dev/null +++ b/default.nix @@ -0,0 +1,13 @@ +(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 = ./.; + }).defaultNix