mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
bazarr: fix build
This commit is contained in:
parent
ab5b6828af
commit
3fc1cc5c03
@ -1,25 +1,28 @@
|
|||||||
{ stdenv, lib, fetchurl, makeWrapper, python3, unrar, ffmpeg, nixosTests }:
|
{ stdenv, lib, fetchurl, makeWrapper, unzip, python3, unrar, ffmpeg, nixosTests }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bazarr";
|
pname = "bazarr";
|
||||||
version = "0.9.6";
|
version = "0.9.6";
|
||||||
|
|
||||||
|
sourceRoot = ".";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/morpheus65535/bazarr/archive/v${version}.tar.gz";
|
url = "https://github.com/morpheus65535/bazarr/releases/download/v${version}/bazarr.zip";
|
||||||
sha256 = "sha256-aO9PIE/YlSIGEcntDCdxIYuuvV5jG266ldhC2QfT+e4=";
|
sha256 = "sha256-ZSQzDlObnv5DEra2+YgXhox583KPyGIjia0SJyTUPWo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ unzip makeWrapper ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/src
|
mkdir -p $out/{bin,share/${pname}-${version}}
|
||||||
cp -r * $out/src
|
cp -r * $out/share/${pname}-${version}
|
||||||
|
makeWrapper "${
|
||||||
mkdir -p $out/bin
|
(python3.withPackages
|
||||||
makeWrapper "${(python3.withPackages (ps: [ps.lxml ps.numpy])).interpreter}" \
|
(ps: [ ps.lxml ps.numpy ps.gevent ps.gevent-websocket ])).interpreter
|
||||||
|
}" \
|
||||||
$out/bin/bazarr \
|
$out/bin/bazarr \
|
||||||
--add-flags "$out/src/bazarr.py" \
|
--add-flags "$out/share/${pname}-${version}/bazarr.py" \
|
||||||
--suffix PATH : ${lib.makeBinPath [ unrar ffmpeg ]} \
|
--suffix PATH : ${lib.makeBinPath [ unrar ffmpeg ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
|
Loading…
Reference in New Issue
Block a user