diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-10-15 12:32:28 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-10-15 12:32:28 -0700 |
| commit | ce39b5fd65a91e241b2edbb9fd6a9a12967a064d (patch) | |
| tree | bd0ec3519ac3a41c55193023dc3f3bb2705114a1 /tools/seqstat/default.nix | |
| parent | ci: update the flake once a week (diff) | |
| download | infra-ce39b5fd65a91e241b2edbb9fd6a9a12967a064d.tar.gz | |
ref(seqstat): rewrite from go to python
This is a simple script, there's no benefit in having this in go. Having
it Python makes it easier to extend with panda or other libraries in the
future if I need more statistics too.
Diffstat (limited to 'tools/seqstat/default.nix')
| -rw-r--r-- | tools/seqstat/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/seqstat/default.nix b/tools/seqstat/default.nix new file mode 100644 index 0000000..d45f4bf --- /dev/null +++ b/tools/seqstat/default.nix @@ -0,0 +1,24 @@ +{ self, lib, python3, stdenvNoCC, pkgs }: + +stdenvNoCC.mkDerivation rec { + pname = "seqstat"; + src = ./seqstat.py; + version = "0.1.0"; + + buildInputs = [ python3 ]; + + dontUnpack = true; + dontBuild = true; + + installPhase = '' + mkdir -p $out/bin + cp $src $out/bin/${pname} + ''; + + meta = with lib; { + description = "Display an histogram for a given sequence of numbers."; + license = with licenses; [ mit ]; + platforms = platforms.unix; + maintainers = with maintainers; [ fcuny ]; + }; +} |
