3
0
Fork 0
forked from mirrors/nixpkgs

gildas: 20190701_a -> 20190901_a

This commit is contained in:
Sébastien Maret 2019-08-01 15:48:16 +02:00
parent 52de09ce84
commit 4f3eacc2bf
No known key found for this signature in database
GPG key ID: 86E30E5A0F5FC59C

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, gtk2-x11 , pkgconfig , python27 , gfortran , lesstif
, cfitsio , getopt , perl , groff , which
, cfitsio , getopt , perl , groff , which, darwin
}:
let
@ -7,8 +7,8 @@ let
in
stdenv.mkDerivation rec {
srcVersion = "jul19a";
version = "20190701_a";
srcVersion = "sep19a";
version = "20190901_a";
pname = "gildas";
src = fetchurl {
@ -16,19 +16,22 @@ stdenv.mkDerivation rec {
# source code of the previous release to a different directory
urls = [ "http://www.iram.fr/~gildas/dist/gildas-src-${srcVersion}.tar.xz"
"http://www.iram.fr/~gildas/dist/archive/gildas/gildas-src-${srcVersion}.tar.xz" ];
sha256 = "97eaa0d0a0f53f0616462642a9bfaddb0305a8a0948e60531d8a524a13a370b6";
sha256 = "0l4jfzzxp1ab70a920qfbxiphgnc06m46wfwv0jlsq2mfk7cxac1";
};
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig groff perl getopt gfortran which ];
buildInputs = [ gtk2-x11 lesstif cfitsio python27Env ];
buildInputs = [ gtk2-x11 lesstif cfitsio python27Env ]
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation ]);
patches = [ ./wrapper.patch ./clang.patch ./aarch64.patch ];
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument";
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin (with darwin.apple_sdk.frameworks; "-F${CoreFoundation}/Library/Frameworks");
configurePhase=''
substituteInPlace admin/wrapper.sh --replace '%%OUT%%' $out
substituteInPlace admin/wrapper.sh --replace '%%PYTHONHOME%%' ${python27Env}