feat(nix): compat default.nix
&& shell.nix
This commit is contained in:
parent
7aacddbad7
commit
a0494b4d61
4 changed files with 17 additions and 0 deletions
1
default.nix
Normal file
1
default.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
(import ./util/compat.nix).defaultNix
|
|
@ -27,6 +27,11 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flake-compat = {
|
||||||
|
url = "github:inclyc/flake-compat";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
deploy-rs = {
|
deploy-rs = {
|
||||||
url = "github:serokell/deploy-rs";
|
url = "github:serokell/deploy-rs";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
1
shell.nix
Normal file
1
shell.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
(import ./util/compat.nix).shellNix
|
10
util/compat.nix
Normal file
10
util/compat.nix
Normal file
|
@ -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 = ../.;
|
||||||
|
}
|
Loading…
Reference in a new issue