getdata: 0.10.0 -> 0.11.0

https://github.com/ketiltrout/getdata/releases/tag/v0.11.0
This commit is contained in:
Thomas Gerbet 2021-11-28 12:05:27 +01:00
parent 9dd8cb8ce2
commit 8b88a19571

View file

@ -1,19 +1,15 @@
{ lib, stdenv, fetchurl, fetchpatch, libtool }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool }:
stdenv.mkDerivation rec {
pname = "getdata";
version = "0.10.0";
src = fetchurl {
url = "mirror://sourceforge/getdata/${pname}-${version}.tar.xz";
sha256 = "18xbb32vygav9x6yz0gdklif4chjskmkgp06rwnjdf9myhia0iym";
version = "0.11.0";
src = fetchFromGitHub {
owner = "ketiltrout";
repo = pname;
rev = "v${version}";
sha256 = "sha256-fuFakbkxDwDp6Z9VITPIB8NiYRSp98Ub1y5SC6W5S1E=";
};
patches = [
(fetchpatch {
url = "https://sources.debian.org/data/main/libg/libgetdata/0.10.0-10/debian/patches/CVE-2021-20204.patch";
sha256 = "1lvp1c2pkk9kxniwlvax6d8fsmjrkpxawf71c7j4rfjm6dgvivzm";
})
];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libtool ];
meta = with lib; {