diff --git a/derivations/cyberdrop-dl/default.nix b/derivations/cyberdrop-dl/default.nix index 129fbb9e..0b545e88 100644 --- a/derivations/cyberdrop-dl/default.nix +++ b/derivations/cyberdrop-dl/default.nix @@ -1,14 +1,42 @@ -{ lib, fetchPypi, buildPythonPackage }: +{ lib, pkgs }: -buildPythonPackage rec { +let + inherit (pkgs.python310Packages) buildPythonPackage buildPythonApplication fetchPypi; + + # This package is not in nixpkgs + gofile-client = buildPythonPackage rec { + version = "1.0.1"; + pname = "gofile-client"; + + src = fetchPypi { + inherit version pname; + sha256 = "1cc54630f1f4cbc09654ded012b4a5cd4992aa6ee67442dbba873edd63d01eff"; + }; + + propagatedBuildInputs = with pkgs.python310Packages; [ requests ]; + doCheck = false; + }; + +in buildPythonApplication rec { version = "2.30.7"; pname = "cyberdrop-dl"; src = fetchPypi { - inherit pname version; + inherit version pname; sha256 = "ee6804e8f11aa4e3868996c39af95e18e69c9708f81ea04872f0cde148af1ba6"; }; + propagatedBuildInputs = with pkgs.python310Packages; [ + aiofiles + aiohttp + beautifulsoup4 + certifi + colorama + gofile-client + tqdm + yarl + ]; + doCheck = false; meta = with lib; { diff --git a/derivations/default.nix b/derivations/default.nix index a5f448dd..f8a954e7 100644 --- a/derivations/default.nix +++ b/derivations/default.nix @@ -2,4 +2,5 @@ { # vital-synth = pkgs.callPackage ./vital-synth {}; # Kept as an example, don't know if I will fix this or keep using distrho + cyberdrop-dl = pkgs.callPackage ./cyberdrop-dl {}; } \ No newline at end of file diff --git a/derivations/vital-synth/default.nix b/derivations/vital-synth/default.nix index 63d4a8c6..6670447b 100644 --- a/derivations/vital-synth/default.nix +++ b/derivations/vital-synth/default.nix @@ -1,5 +1,7 @@ # Has a problem with vertically offset UI, replaced by distrho for now but kept as an example +# TODO: Flake derivation + # Damn I hate this style { lib , stdenv diff --git a/home/christoph/default.nix b/home/christoph/default.nix index 4bb6b68d..a3d8162b 100644 --- a/home/christoph/default.nix +++ b/home/christoph/default.nix @@ -167,6 +167,8 @@ in rec { protonmail-bridge protonvpn-cli + cyberdrop-dl + # Tools # calibre # virt-manager # Let's try gnome-boxes while we're at it