From 40317fe7a5f15212c48fb51ae638f99d45a39e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Heredia=20Montiel?= Date: Thu, 14 Oct 2021 12:18:18 -0500 Subject: [PATCH] =?UTF-8?q?sickgear:=200.24.15=20=E2=86=92=200.25.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/servers/sickbeard/sickgear.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/servers/sickbeard/sickgear.nix b/pkgs/servers/sickbeard/sickgear.nix index c769d0abfe9c..d55888066a00 100644 --- a/pkgs/servers/sickbeard/sickgear.nix +++ b/pkgs/servers/sickbeard/sickgear.nix @@ -1,16 +1,16 @@ -{ lib, stdenv, fetchFromGitHub, python2, makeWrapper }: +{ lib, stdenv, fetchFromGitHub, python3, makeWrapper }: let - pythonEnv = python2.withPackages(ps: with ps; [ cheetah ]); + pythonEnv = python3.withPackages(ps: with ps; [ cheetah3 ]); in stdenv.mkDerivation rec { pname = "sickgear"; - version = "0.24.15"; + version = "0.25.11"; src = fetchFromGitHub { owner = "SickGear"; repo = "SickGear"; rev = "release_${version}"; - sha256 = "sha256-ocnINaz7F01vYC27fq6DYXkYGnzsqYD16aChPHuA/Go="; + sha256 = "sha256-0/Ez10IWvh84G//1vCZMLiu4+Y2+XcVLw9Gm9X+DY0s="; }; dontBuild = true; @@ -19,11 +19,15 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper ]; buildInputs = [ pythonEnv ]; - installPhase = '' - mkdir -p $out/bin - cp -R {autoProcessTV,gui,lib,sickbeard,sickgear.py,SickBeard.py} $out/ + postPatch = '' + substituteInPlace sickgear.py --replace "/usr/bin/env python2" "/usr/bin/env python" + ''; - makeWrapper $out/SickBeard.py $out/bin/sickgear + 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; {