gf2x: 1.2 -> 1.3.0

Switch source to fetchgit since it removes the requirements to manually
find the correct link for each version.

More information at
https://github.com/NixOS/nixpkgs/pull/45299
This commit is contained in:
Timo Kaufmann 2020-01-02 17:24:11 +01:00
parent d41ff9b59f
commit 45e3be9eca

View File

@ -1,20 +1,25 @@
{ stdenv { stdenv
, lib , lib
, fetchurl , fetchgit
, autoreconfHook
, optimize ? false # impure hardware optimizations , optimize ? false # impure hardware optimizations
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gf2x"; pname = "gf2x";
version = "1.2"; # remember to also update the url version = "1.3.0";
src = fetchurl { # upstream has plans to move to gitlab:
# find link to latest version (with file id) here: https://gforge.inria.fr/projects/gf2x/ # https://github.com/NixOS/nixpkgs/pull/45299#issuecomment-564477936
# Requested a predictable link: src = fetchgit {
# https://gforge.inria.fr/tracker/index.php?func=detail&aid=21704&group_id=1874&atid=6982 url = "https://scm.gforge.inria.fr/anonscm/git/gf2x/gf2x.git";
url = "https://gforge.inria.fr/frs/download.php/file/36934/gf2x-${version}.tar.gz"; rev = "gf2x-${version}";
sha256 = "0d6vh1mxskvv3bxl6byp7gxxw3zzpkldrxnyajhnl05m0gx7yhk1"; sha256 = "04g5jg0i4vz46b4w2dvbmahwzi3k6b8g515mfw7im1inc78s14id";
}; };
nativeBuildInputs = [
autoreconfHook
];
# no actual checks present yet (as of 1.2), but can't hurt trying # no actual checks present yet (as of 1.2), but can't hurt trying
# for an indirect test, run ntl's test suite # for an indirect test, run ntl's test suite
doCheck = true; doCheck = true;