diff options
Diffstat (limited to 'cloc.nix')
-rw-r--r-- | cloc.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cloc.nix b/cloc.nix new file mode 100644 index 0000000..07a3692 --- /dev/null +++ b/cloc.nix | |||
@@ -0,0 +1,16 @@ | |||
1 | { pkgs ? import ./nixpkgs-pinned.nix {} }: | ||
2 | pkgs.stdenv.mkDerivation { | ||
3 | name = "mininix-cloc"; | ||
4 | src = ./.; | ||
5 | |||
6 | nativeBuildInputs = with pkgs; [ cloc jq ]; | ||
7 | |||
8 | buildPhase = '' | ||
9 | bash cloc-rocq.sh > formalization-loc-report | ||
10 | ''; | ||
11 | |||
12 | installPhase = '' | ||
13 | mkdir -p $out | ||
14 | cp formalization-loc-report $out/ | ||
15 | ''; | ||
16 | } | ||