form: switch from fetchurl to fetchFromGitHub

jopejoe1 eff9933e a4f79d88

+13 -7
+13 -7
pkgs/by-name/fo/form/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchurl, 4 + fetchFromGitHub, 5 + autoreconfHook, 5 6 gmp, 6 7 zlib, 7 8 }: 8 9 9 - stdenv.mkDerivation { 10 + stdenv.mkDerivation (finalAttrs: { 10 11 version = "4.3.1"; 11 12 pname = "form"; 12 13 13 - # This tarball is released by author, it is not downloaded from tag, so can't use fetchFromGitHub 14 - src = fetchurl { 15 - url = "https://github.com/vermaseren/form/releases/download/v4.3.1/form-4.3.1.tar.gz"; 16 - sha256 = "sha256-8fUS3DT+m71rGfLf7wX8uZEt+0PINop1t5bsRy7ou84="; 14 + src = fetchFromGitHub { 15 + owner = "form-dev"; 16 + repo = "form"; 17 + tag = "v${finalAttrs.version}"; 18 + hash = "sha256-ZWpfPeTekHEALqXVF/nLkcNsrkt17AKm2B/uydUBfvo="; 17 19 }; 20 + 21 + nativeBuildInputs = [ 22 + autoreconfHook 23 + ]; 18 24 19 25 buildInputs = [ 20 26 gmp ··· 28 34 maintainers = [ maintainers.veprbl ]; 29 35 platforms = platforms.unix; 30 36 }; 31 - } 37 + })