blob: 73ea63e13087182028baa05ad98a0b069e4de020 (
plain) (
blame)
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
|
{ 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 = [ ];
};
}
|