2020-03-13 09:46:05 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python3, makeWrapper }:
|
2019-09-25 13:11:14 +00:00
|
|
|
|
|
|
|
let
|
2020-03-13 09:46:05 +00:00
|
|
|
pythonEnv = python3.withPackages(ps: with ps; [
|
|
|
|
(python3.pkgs.callPackage ./cheetah3.nix {})
|
|
|
|
]);
|
2019-09-25 13:11:14 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "sickgear";
|
2020-03-13 09:46:05 +00:00
|
|
|
#version = "0.21.6";
|
2020-03-13 11:02:13 +00:00
|
|
|
version = "0.21.21";
|
2019-09-25 13:11:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SickGear";
|
|
|
|
repo = "SickGear";
|
2020-03-13 11:02:13 +00:00
|
|
|
rev = "release_${version}";
|
|
|
|
sha256 = "15nlxg2867l846qqxklmfyqmn5nc01ksd4lpwbrbjdzpk4y3xi78";
|
2019-09-25 13:11:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ pythonEnv ];
|
2020-03-13 09:46:05 +00:00
|
|
|
patches = [ ./debug.patch ];
|
2019-09-25 13:11:14 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -R {autoProcessTV,gui,lib,sickbeard,sickgear.py,SickBeard.py} $out/
|
|
|
|
|
2020-03-13 09:46:05 +00:00
|
|
|
makeWrapper $out/sickgear.py $out/bin/sickgear
|
2019-09-25 13:11:14 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "The most reliable stable TV fork of the great Sick-Beard to fully automate TV enjoyment with innovation";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
homepage = "https://github.com/SickGear/SickGear";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ rembo10 ];
|
|
|
|
};
|
|
|
|
}
|