blob: 3d0acc2d7511c9ac7bfab5985e8789335ec9bb7e (
plain)
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
|
{ final, prev, ... }:
let
inpPython = final.python310.override {};
in {
cake-prometheus-exporter = prev.stdenv.mkDerivation rec {
pname = "cake-prometheus-exporter";
version = "0.0.0";
src = ./cake-prometheus-exporter.py;
phases = [ "buildPhase" "checkPhase" "installPhase" ];
python = inpPython.withPackages (ps: with ps; []);
buildPhase = ''
substituteAll $src cake-prometheus-exporter
'';
doCheck = true;
checkPhase = ''
${python}/bin/python -m py_compile cake-prometheus-exporter
'';
installPhase = ''
install -m 0755 -D -t $out/bin \
cake-prometheus-exporter
'';
};
}
|