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