diff options
-rw-r--r-- | hosts/home.nix | 1 | ||||
-rw-r--r-- | hosts/luna/home.nix | 1 | ||||
-rw-r--r-- | hosts/phobos/home.nix | 1 | ||||
-rw-r--r-- | packages/default.nix | 1 | ||||
-rw-r--r-- | packages/mov-cli/default.nix | 22 |
5 files changed, 26 insertions, 0 deletions
diff --git a/hosts/home.nix b/hosts/home.nix index 64a4dbb..bb8d0bb 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -33,6 +33,7 @@ in statix nixpkgs-fmt paperkey + openjdk8 ] ++ (with pkgs.custom; [ smart-wallpaper diff --git a/hosts/luna/home.nix b/hosts/luna/home.nix index c79241e..bcac39c 100644 --- a/hosts/luna/home.nix +++ b/hosts/luna/home.nix @@ -15,6 +15,7 @@ in trackma kindlegen manga-cli + mov-cli ]); programs.firefox.profiles.default.settings = { diff --git a/hosts/phobos/home.nix b/hosts/phobos/home.nix index 5507164..422fbe7 100644 --- a/hosts/phobos/home.nix +++ b/hosts/phobos/home.nix @@ -15,6 +15,7 @@ in trackma kindlegen manga-cli + mov-cli ]); programs.firefox.profiles.default.settings = { diff --git a/packages/default.nix b/packages/default.nix index 63a39a7..8bee5e4 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -7,5 +7,6 @@ final: prev: adl = prev.callPackage ./adl { inherit (final.custom) trackma; }; kindlegen = prev.callPackage ./kindlegen { }; manga-cli = prev.callPackage ./manga-cli { }; + mov-cli = prev.callPackage ./mov-cli { }; }; } diff --git a/packages/mov-cli/default.nix b/packages/mov-cli/default.nix new file mode 100644 index 0000000..11ee4dc --- /dev/null +++ b/packages/mov-cli/default.nix @@ -0,0 +1,22 @@ +{ lib, python39, fetchgit, gobject-introspection, gtk3, gnome, wrapGAppsHook }: + +python39.pkgs.buildPythonApplication rec { + pname = "mov-cli"; + version = "1.0"; + + propagatedBuildInputs = with python39.pkgs; [ setuptools httpx click beautifulsoup4 colorama ]; + + #bug with fetchFromGithub? + src = fetchgit { + url = "https://github.com/mov-cli/${pname}.git"; + rev = "b89e807e8ffc830b0b18c8e98712441c03774b8e"; + sha256 = "sha256-D+OeXcLdkbG4ASbPQYIWf7J1CRZ9jH3UXxfTL4WleY0="; + }; + + prePatch = '' + substituteInPlace setup.py \ + --replace "bs4" "beautifulsoup4" + ''; + + doCheck = false; +} |