diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..85fd816 --- /dev/null +++ b/default.nix @@ -0,0 +1 @@ +(import ./util/compat.nix).defaultNix diff --git a/flake.nix b/flake.nix index f4ce0a3..892c750 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + flake-compat = { + url = "github:inclyc/flake-compat"; + flake = false; + }; + deploy-rs = { url = "github:serokell/deploy-rs"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..5c1866d --- /dev/null +++ b/shell.nix @@ -0,0 +1 @@ +(import ./util/compat.nix).shellNix diff --git a/util/compat.nix b/util/compat.nix new file mode 100644 index 0000000..b448457 --- /dev/null +++ b/util/compat.nix @@ -0,0 +1,10 @@ +let lock = builtins.fromJSON (builtins.readFile ../flake.lock); +in +import + (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 = ../.; + }