diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2020-01-17 10:23:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-17 10:23:28 -0500 |
commit | 430dfb8082fec036202ca8adddd7c75a820777c4 (patch) | |
tree | 667d2cf65e4e48ec7ab8df11df0cf6df00989456 /pkgs/applications/science/astronomy/gildas/default.nix | |
parent | cc06f9c249545858c6a923dc66ff7c0d3faeb716 (diff) | |
parent | 0956fcab16e5f993c0468a84373546c3a9334f08 (diff) | |
download | nixpkgs-430dfb8082fec036202ca8adddd7c75a820777c4.tar nixpkgs-430dfb8082fec036202ca8adddd7c75a820777c4.tar.gz nixpkgs-430dfb8082fec036202ca8adddd7c75a820777c4.tar.bz2 nixpkgs-430dfb8082fec036202ca8adddd7c75a820777c4.tar.lz nixpkgs-430dfb8082fec036202ca8adddd7c75a820777c4.tar.xz nixpkgs-430dfb8082fec036202ca8adddd7c75a820777c4.tar.zst nixpkgs-430dfb8082fec036202ca8adddd7c75a820777c4.zip |
Merge pull request #77631 from smaret/gildas-202001a
gildas: 20191201_a -> 20200101_a
Diffstat (limited to 'pkgs/applications/science/astronomy/gildas/default.nix')
-rw-r--r-- | pkgs/applications/science/astronomy/gildas/default.nix | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/applications/science/astronomy/gildas/default.nix b/pkgs/applications/science/astronomy/gildas/default.nix index 4bb3c7b34fe..cc6af8a17c0 100644 --- a/pkgs/applications/science/astronomy/gildas/default.nix +++ b/pkgs/applications/science/astronomy/gildas/default.nix @@ -1,14 +1,14 @@ -{ stdenv, fetchurl, gtk2-x11 , pkgconfig , python27 , gfortran , lesstif -, cfitsio , getopt , perl , groff , which, darwin +{ stdenv, fetchurl, gtk2-x11 , pkgconfig , python3 , gfortran , lesstif +, cfitsio , getopt , perl , groff , which, darwin, ncurses }: let - python27Env = python27.withPackages(ps: with ps; [ numpy ]); + python3Env = python3.withPackages(ps: with ps; [ numpy ]); in stdenv.mkDerivation rec { - srcVersion = "dec19a"; - version = "20191201_a"; + srcVersion = "jan20a"; + version = "20200101_a"; pname = "gildas"; src = fetchurl { @@ -16,17 +16,19 @@ 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 = "0kwq5gzgzx5hkbabwvbrw2958pqz4m2s501k5cbllgxh4sqp86b1"; + sha256 = "12n08pax7gwg2z121ix3ah5prq3yswqnf2yc8jgs4i9rgkpbsfzz"; }; - enableParallelBuilding = true; + # Python scripts are not converted to Python 3 syntax when parallel + # building is turned on. Disable it until this is fixed upstream. + enableParallelBuilding = false; nativeBuildInputs = [ pkgconfig groff perl getopt gfortran which ]; - buildInputs = [ gtk2-x11 lesstif cfitsio python27Env ] + buildInputs = [ gtk2-x11 lesstif cfitsio python3Env ncurses ] ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation ]); - patches = [ ./wrapper.patch ./clang.patch ./aarch64.patch ]; + patches = [ ./wrapper.patch ./clang.patch ./aarch64.patch ./imager-py3.patch ]; NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument"; @@ -34,7 +36,7 @@ stdenv.mkDerivation rec { configurePhase='' substituteInPlace admin/wrapper.sh --replace '%%OUT%%' $out - substituteInPlace admin/wrapper.sh --replace '%%PYTHONHOME%%' ${python27Env} + substituteInPlace admin/wrapper.sh --replace '%%PYTHONHOME%%' ${python3Env} substituteInPlace utilities/main/gag-makedepend.pl --replace '/usr/bin/perl' ${perl}/bin/perl source admin/gildas-env.sh -c gfortran -o openmp echo "gag_doc: $out/share/doc/" >> kernel/etc/gag.dico.lcl |