🔧 convert to nix flake

This commit is contained in:
2022-05-22 22:09:24 -04:00
parent 25ec6f39c9
commit a98d6e2e0a
5 changed files with 100 additions and 8 deletions

View File

@@ -1,7 +1,13 @@
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { };
in pkgs.mkShell {
name = "net";
buildInputs = with pkgs; [ ruby nodejs ];
}
(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 = ./.;
}).shellNix