feat: nb initial click and load
This commit is contained in:
34
utils/pkgs/clicknload-proxy/default.nix
Normal file
34
utils/pkgs/clicknload-proxy/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, python3
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
let
|
||||
python = python3.withPackages (ps: [ ps.pycryptodome ]);
|
||||
in
|
||||
python3.pkgs.buildPythonApplication {
|
||||
pname = "clicknload-proxy";
|
||||
version = "1.0.0";
|
||||
format = "other";
|
||||
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
propagatedBuildInputs = [ python3.pkgs.pycryptodome ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp clicknload-proxy.py $out/bin/clicknload-proxy
|
||||
chmod +x $out/bin/clicknload-proxy
|
||||
|
||||
wrapProgram $out/bin/clicknload-proxy \
|
||||
--prefix PYTHONPATH : "${python}/${python.sitePackages}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Click'n'Load proxy that forwards links to pyLoad";
|
||||
license = licenses.mit;
|
||||
mainProgram = "clicknload-proxy";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user