mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
35 lines
883 B
Nix
35 lines
883 B
Nix
{ stdenv, lib, fetchurl, makeWrapper, python3, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bazarr";
|
|
version = "0.8.4.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/morpheus65535/bazarr/archive/v${version}.tar.gz";
|
|
sha256 = "09qpy5fyyidi45968qg37cighfh3rgwsi8pfz4fk5fp2v1xq23yg";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|