diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-10-31 11:29:11 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-10-31 11:29:11 -0700 |
| commit | 4dd250dc04e8c44fa91627fb051a9670b7b01e63 (patch) | |
| tree | 03ef67d6ff1b1f10096bf2b58795214fc5e17819 /tools/gha-billing/default.nix | |
| parent | ref(home/python): install a few more packages (diff) | |
| download | infra-4dd250dc04e8c44fa91627fb051a9670b7b01e63.tar.gz | |
feat(tools/gha-billing): a CLI to report minutes left/used on GHA
Diffstat (limited to '')
| -rw-r--r-- | tools/gha-billing/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/gha-billing/default.nix b/tools/gha-billing/default.nix new file mode 100644 index 0000000..51f69f8 --- /dev/null +++ b/tools/gha-billing/default.nix @@ -0,0 +1,35 @@ +{ self, lib, stdenvNoCC, pkgs }: + +stdenvNoCC.mkDerivation rec { + pname = "gha-billing"; + src = ./gha-billing.py; + version = "0.1.0"; + + buildInputs = [ + (pkgs.python310.withPackages (ps: with ps; [ + requests + ])) + ]; + + propagatedBuildInputs = [ + (pkgs.python310.withPackages (ps: with ps; [ + requests + ])) + ]; + + dontUnpack = true; + dontBuild = true; + + installPhase = '' + mkdir -p $out/bin + cp $src $out/bin/${pname} + ''; + + + meta = with pkgs.lib; { + description = "CLI to get billing information for GHA."; + license = licenses.mit; + platforms = platforms.unix; + maintainers = [ ]; + }; +} |
