gsl: 2.7.1 -> 2.8

This commit is contained in:
Weijia Wang 2024-07-08 00:29:12 +02:00
parent b973af57ae
commit f91fb1678a

View File

@ -1,16 +1,24 @@
{ fetchurl, lib, stdenv }:
{ fetchurl, fetchpatch, lib, stdenv }:
stdenv.mkDerivation rec {
pname = "gsl";
version = "2.7.1";
version = "2.8";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnu/gsl/${pname}-${version}.tar.gz";
sha256 = "sha256-3LD71DBIgyt1f/mUJpGo3XACbV2g/4VgHlJof23us0s=";
hash = "sha256-apnu7RVjLGNUiVsd1ULtWoVcDxXZrRMmxv4rLJ5CMZA=";
};
patches = [
(fetchpatch {
url = "https://github.com/macports/macports-ports/raw/90be777d2ce451d3c23783cb2be0efab9732e4d0/math/gsl/files/patch-fix-linking.diff";
extraPrefix = "";
hash = "sha256-lweYndIxcM5+4ckIUubkD9XbJbqkfdK+y9c3aRzmq0M=";
})
];
preConfigure = if (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) then ''
MACOSX_DEPLOYMENT_TARGET=10.16
'' else null;