enhance nix-shell and add CI

This commit is contained in:
GTrunSec 2021-05-13 01:18:12 -07:00 committed by David Arnold
parent ffaa63af55
commit c3fa598922
7 changed files with 99 additions and 41 deletions

View file

@ -1,17 +1,13 @@
{
system ? builtins.currentSystem,
pkgs,
}:
let
devshellGitRev = "709fe4d04a9101c9d224ad83f73416dce71baf21";
devshellSrc = fetchTarball {
url = "https://github.com/numtide/devshell/archive/${devshellGitRev}.tar.gz";
sha256 = "1px9cqfshfqs1b7ypyxch3s3ymr4xgycy1krrcg7b97rmmszvsqr";
};
devshell = import devshellSrc { inherit system pkgs; };
in
devshell.fromTOML ./devshell.toml
(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