bchunk: switch from fetchurl to fetchFromGitHub (#435393)

authored by Aleksana and committed by GitHub 9f71df05 14e96035

+11 -6
+11 -6
pkgs/by-name/bc/bchunk/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchurl, 4 + fetchFromGitHub, 5 + nix-update-script, 5 6 }: 6 7 7 - stdenv.mkDerivation rec { 8 + stdenv.mkDerivation (finalAttrs: { 8 9 pname = "bchunk"; 9 10 version = "1.2.2"; 10 11 11 - src = fetchurl { 12 - url = "http://he.fi/bchunk/${pname}-${version}.tar.gz"; 13 - sha256 = "12dxx98kbpc5z4dgni25280088bhlsb677rp832r82zzc1drpng7"; 12 + src = fetchFromGitHub { 13 + owner = "hessu"; 14 + repo = "bchunk"; 15 + tag = "release/${finalAttrs.version}"; 16 + hash = "sha256-wFhBRLRwyC7FrGzadbssqLI9/UwfxBmFfOetaFJgsCo="; 14 17 }; 15 18 16 19 makeFlags = lib.optionals stdenv.cc.isClang [ ··· 23 26 install -Dt $out/share/man/man1 bchunk.1 24 27 ''; 25 28 29 + passthru.updateScript = nix-update-script { }; 30 + 26 31 meta = with lib; { 27 32 homepage = "http://he.fi/bchunk/"; 28 33 description = "Program that converts CD images in BIN/CUE format into a set of ISO and CDR tracks"; ··· 30 35 license = licenses.gpl2Plus; 31 36 mainProgram = "bchunk"; 32 37 }; 33 - } 38 + })