-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
47 lines (39 loc) · 1.26 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
description = "Certora GitHub Run Action";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
json-strip-comments-overlay = final: prev: {
json-strip-comments =
final.callPackage ./nix/json-strip-comments.nix { };
};
pkgs = import nixpkgs {
inherit system;
overlays = [ json-strip-comments-overlay ];
};
test_packages = with pkgs; [ action-validator shellcheck ];
devShell = with pkgs;
mkShellNoCC {
name = "cert-gh-run-action";
packages = [ act jq gh nodejs pre-commit json-strip-comments ]
++ test_packages;
nativeBuildInputs = [
# set SOURCE_DATE_EPOCH so that we can use python wheels
ensureNewerSourcesForZipFilesHook
];
};
ciShell = with pkgs;
mkShellNoCC {
name = "cert-gh-run-action-ci";
buildInputs = test_packages;
};
in {
devShell = devShell;
ciShell = ciShell;
packages = { dev-shell = devShell.inputDerivation; };
});
}