aboutsummaryrefslogtreecommitdiff
path: root/packages/slocalc/default.nix (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-05-04move the slocalc under `src`Franck Cuny1-25/+0
2024-04-16move the `slocalc` to a python scriptFranck Cuny1-3/+3
2024-03-06rename `tools` to `packages` to follow conventionFranck Cuny1-3/+3
The convention is to use `pkgs` or `packages` for overlays and definition of custom packages. Since I'm already using `pkg` for go, I prefer to use `packages` for my scripts.
2023-12-15various fixes for errors reported by deadnixFranck Cuny1-1/+1
2022-10-29fix(tools): install dependencies correctlyFranck Cuny1-1/+2
For the python tools, we need the python runtime to be available. For this we need to specify the dependencies in `propagatedBuildInputs`. The same is true for flamegraph and perf.
2022-10-15ref(seqstat): rewrite from go to pythonFranck Cuny1-8/+4
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.
2022-10-04ref(tools/ipconverter): rewrite the tool in pythonFranck Cuny1-13/+26
No need to do this with Go, a python script is fine. We also don't need to set shell aliases for this: when we install the tool, we can create symbolic links to `ip2int` and `int2ip`.
2022-08-06ref(tools): simplify the import of toolsFranck Cuny1-2/+2
In the `mkSystem` function, instead of defining each tools, let's import all of them at once. This works both with installing a tool from a module or running them from the CLI. Change-Id: Ia44ff9a45b54a1ecea6f6b02b4cad2956799f627 Reviewed-on: https://cl.fcuny.net/c/world/+/682 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-18feat(ipconverter): add a tool to convert IPv4 to int and vice-versaFranck Cuny1-0/+15
It's sometimes useful to store IPv4 addresses as an integer. This tool helps with the conversion, and also does the reverse conversion. ``` % go run . int2ip 3232235521 3232235521 192.168.0.1 % go run . ip2int 192.168.0.1 192.168.0.1 3232235521 ``` Change-Id: Ic1e44057bca3539b4c183d387c635f69f5bf3f36 Reviewed-on: https://cl.fcuny.net/c/world/+/441 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>