diff options
Diffstat (limited to 'pkgs/ripper.nix')
| -rw-r--r-- | pkgs/ripper.nix | 23 |
1 files changed, 23 insertions, 0 deletions
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 "$@" +'' |