From 099e6bb02d3e1ca2e4feced50568766bf094531a Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 7 Oct 2024 13:36:51 +0200 Subject: [PATCH] bazarr: migrate to fetchzip --- pkgs/servers/bazarr/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/bazarr/default.nix b/pkgs/servers/bazarr/default.nix index f8b364548248..3e8cac490961 100644 --- a/pkgs/servers/bazarr/default.nix +++ b/pkgs/servers/bazarr/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, makeWrapper, unzip, python3, unar, ffmpeg, nixosTests }: +{ stdenv, lib, fetchzip, makeWrapper, python3, unar, ffmpeg, nixosTests }: let runtimeProgDeps = [ @@ -10,14 +10,13 @@ stdenv.mkDerivation rec { pname = "bazarr"; version = "1.4.4"; - sourceRoot = "."; - - src = fetchurl { + src = fetchzip { url = "https://github.com/morpheus65535/bazarr/releases/download/v${version}/bazarr.zip"; - sha256 = "sha256-YVg9pHk7KB4FjtmsFV4INSIKdLFiHHN8FHxeVDz2SlU="; + hash = "sha256-FZKGHC7CLzIzOXH77iHwSb9+Mw1z+kiz+1rLO6XU/94="; + stripRoot = false; }; - nativeBuildInputs = [ unzip makeWrapper ]; + nativeBuildInputs = [ makeWrapper ]; buildInputs = [ (python3.withPackages (ps: [