depot/third_party/nixpkgs/pkgs/servers/sickbeard/sickgear.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

39 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, python3, makeWrapper }:
let
pythonEnv = python3.withPackages(ps: with ps; [ cheetah3 ]);
in stdenv.mkDerivation rec {
pname = "sickgear";
version = "0.25.28";
src = fetchFromGitHub {
owner = "SickGear";
repo = "SickGear";
rev = "release_${version}";
sha256 = "16d0yvsp9yp67q1clhjs77syd13bmfgbadxcc1x8yfrfvdy6v39l";
};
dontBuild = true;
doCheck = false;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ pythonEnv ];
postPatch = ''
substituteInPlace sickgear.py --replace "/usr/bin/env python2" "/usr/bin/env python"
'';
installPhase = ''
mkdir -p $out/bin $out/opt/sickgear
cp -R {autoProcessTV,gui,lib,sickbeard,sickgear.py} $out/opt/sickgear/
makeWrapper $out/opt/sickgear/sickgear.py $out/bin/sickgear
'';
meta = with 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 lib.maintainers; [ rembo10 ];
};
}