diff options
| author | Franck Cuny <fcuny@roblox.com> | 2024-04-16 09:24:12 -0700 |
|---|---|---|
| committer | Franck Cuny <fcuny@roblox.com> | 2024-04-16 09:24:12 -0700 |
| commit | efeef95bbdf2e79e8ba48198cb8ff0534afce324 (patch) | |
| tree | 2a0b0ae890c437330865311d1ac294fb987c7fbd /packages/slocalc/default.nix | |
| parent | install nomad pack (diff) | |
| download | infra-efeef95bbdf2e79e8ba48198cb8ff0534afce324.tar.gz | |
move the `slocalc` to a python script
Diffstat (limited to 'packages/slocalc/default.nix')
| -rw-r--r-- | packages/slocalc/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/slocalc/default.nix b/packages/slocalc/default.nix new file mode 100644 index 0000000..114120e --- /dev/null +++ b/packages/slocalc/default.nix @@ -0,0 +1,25 @@ +{ lib, python3, stdenvNoCC }: + +stdenvNoCC.mkDerivation rec { + pname = "slocalc"; + src = ./slocalc.py; + version = "0.1.0"; + + buildInputs = [ python3 ]; + propagatedBuildInputs = [ python3 ]; + + dontUnpack = true; + dontBuild = true; + + installPhase = '' + mkdir -p $out/bin + cp $src $out/bin/${pname} + ''; + + meta = with lib; { + description = "Calculate SLO uptime."; + license = with licenses; [ mit ]; + platforms = platforms.unix; + maintainers = with maintainers; [ fcuny ]; + }; +} |
