diff options
| author | Fuwn <[email protected]> | 2024-10-16 18:03:36 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-16 18:08:51 -0700 |
| commit | aecc4d760b10388b43923395bb0d0b64e0f705a7 (patch) | |
| tree | 442b64c3bc3769e3d1d692eef547840c58c0a2de /pkgs | |
| parent | feat(ahoviewer): update dialogue compatibility (diff) | |
| download | tsutsumi-aecc4d760b10388b43923395bb0d0b64e0f705a7.tar.xz tsutsumi-aecc4d760b10388b43923395bb0d0b64e0f705a7.zip | |
feat(pkgs): ripper and parse-ripper-output packages
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/parse-ripper-output.nix | 23 | ||||
| -rw-r--r-- | pkgs/ripper.nix | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/parse-ripper-output.nix b/pkgs/parse-ripper-output.nix new file mode 100644 index 0000000..8aa092b --- /dev/null +++ b/pkgs/parse-ripper-output.nix @@ -0,0 +1,23 @@ +{ + source, + fetchzip, + writeShellScriptBin, + python3, + runtimeShell, +}: +let + ripper = fetchzip { + inherit (source) url sha256; + }; + + python = python3.withPackages ( + ps: with ps; [ + markdown + ] + ); +in +writeShellScriptBin "parse-ripper-output" '' + #!${runtimeShell} + + ${python}/bin/python3 ${ripper}/extras/parse-rip-output.py "$@" +'' diff --git a/pkgs/ripper.nix b/pkgs/ripper.nix new file mode 100644 index 0000000..345c272 --- /dev/null +++ b/pkgs/ripper.nix @@ -0,0 +1,23 @@ +{ + source, + fetchzip, + writeShellScriptBin, + python3, + runtimeShell, +}: +let + ripper = fetchzip { + inherit (source) url sha256; + }; + + python = python3.withPackages ( + ps: with ps; [ + requests + ] + ); +in +writeShellScriptBin "ripper" '' + #!${runtimeShell} + + ${python}/bin/python3 ${ripper}/ripper.py "$@" +'' |