diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-06-30 19:49:33 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-06-30 19:49:33 +0200 |
commit | a49cd7905f080e3dafa4daae4179551b2af65953 (patch) | |
tree | 973f1b5ddc1fc7b77715da3a16636dc79b27d26c /packages | |
parent | Phobos: Disable mpv hardware acceleration (diff) | |
download | nixos-config-a49cd7905f080e3dafa4daae4179551b2af65953.tar.gz nixos-config-a49cd7905f080e3dafa4daae4179551b2af65953.tar.bz2 nixos-config-a49cd7905f080e3dafa4daae4179551b2af65953.zip |
Packages: Add mov-cli package
Diffstat (limited to 'packages')
-rw-r--r-- | packages/default.nix | 1 | ||||
-rw-r--r-- | packages/mov-cli/default.nix | 22 |
2 files changed, 23 insertions, 0 deletions
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; +} |