diff options
author | David Terry <me@xwvvvvwx.com> | 2020-05-10 12:26:22 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2020-05-22 11:23:31 +0200 |
commit | 81ccf1303b0930d1d50239ad71bbe109fba9e18b (patch) | |
tree | b7a90bbd225fb8bdb247d61b5affe2551279d686 /pkgs/servers/bazarr | |
parent | 79f41b296c45ef815f4ae6b584d23575b3708464 (diff) |
bazarr: init at 0.8.4.3
Diffstat (limited to 'pkgs/servers/bazarr')
-rw-r--r-- | pkgs/servers/bazarr/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/servers/bazarr/default.nix b/pkgs/servers/bazarr/default.nix new file mode 100644 index 000000000000..cc44efe20988 --- /dev/null +++ b/pkgs/servers/bazarr/default.nix @@ -0,0 +1,35 @@ +{ stdenv, lib, fetchurl, makeWrapper, python3, nixosTests }: + +stdenv.mkDerivation rec { + pname = "bazarr"; + version = "0.8.4.3"; + + src = fetchurl { + url = "https://github.com/morpheus65535/bazarr/archive/v${version}.tar.gz"; + sha256 = "0vvx1lrngxq8c9i0ad8sy6sigcf67b2h7kkaxnlfdlnp1d8kmf1m"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/src + cp -r * $out/src + + mkdir -p $out/bin + makeWrapper "${(python3.withPackages (ps: [ps.lxml])).interpreter}" \ + $out/bin/bazarr \ + --add-flags "$out/src/bazarr.py" \ + ''; + + passthru.tests = { + smoke-test = nixosTests.bazarr; + }; + + meta = with lib; { + description = "Subtitle manager for Sonarr and Radarr"; + homepage = "https://www.bazarr.media/"; + license = licenses.gpl3; + maintainers = with maintainers; [ xwvvvvwx ]; + platforms = platforms.all; + }; +} |