From ce39b5fd65a91e241b2edbb9fd6a9a12967a064d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 15 Oct 2022 12:32:28 -0700 Subject: 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. --- tools/seqstat/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tools/seqstat/default.nix (limited to 'tools/seqstat/default.nix') 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 ]; + }; +} -- cgit v1.2.3