feat(nix): compat default.nix && shell.nix

This commit is contained in:
reo101 2023-09-06 20:48:11 +03:00
parent 7aacddbad7
commit a0494b4d61
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
4 changed files with 17 additions and 0 deletions

1
default.nix Normal file
View file

@ -0,0 +1 @@
(import ./util/compat.nix).defaultNix

View file

@ -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
View file

@ -0,0 +1 @@
(import ./util/compat.nix).shellNix

10
util/compat.nix Normal file
View 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 = ../.;
}