git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #73474 from matthuszagh/asymptote-2.60

asymptote: 2.47 -> 2.60

commitd901b2a166f7f7ab5a4d96d4128b8c8bd24fd125 authorDaniel Schaefer <git@danielschaefer.me> dateWed 20 Nov 2019, 09:35 (7 years ago) parent5ccbcf2098a903
2 files changed+50−50
pkgs/tools/graphics/asymptote/default.nix+49−49 pkgs/top-level/all-packages.nix+1−1
pkgs/tools/graphics/asymptote/default.nix+49−49
@@ -1,74 +1,74 @@
1−{stdenv, fetchurl, fetchpatch
2− , freeglut, ghostscriptX, imagemagick, fftw
3− , boehmgc, libGLU, libGL, mesa, ncurses, readline, gsl, libsigsegv
4− , python, zlib, perl, texLive, texinfo, xz
1+{ stdenv, fetchFromGitHub, fetchurl
2+, autoreconfHook, bison, glm, yacc, flex
3+, freeglut, ghostscriptX, imagemagick, fftw
4+, boehmgc, libGLU, libGL, mesa, ncurses, readline, gsl, libsigsegv
5+, python3Packages
6+, zlib, perl
7+, texLive, texinfo
58, darwin
69}:
710
8−let
9− s = # Generated upstream information
10− rec {
11− baseName="asymptote";
12− version="2.47";
13− name="${baseName}-${version}";
14− hash="0zc24n2vwzxdfmcppqfk3fkqlb4jmvswzi3bz232kxl7dyiyb971";
15− url="https://freefr.dl.sourceforge.net/project/asymptote/2.47/asymptote-2.47.src.tgz";
16− sha256="0zc24n2vwzxdfmcppqfk3fkqlb4jmvswzi3bz232kxl7dyiyb971";
17− };
18− buildInputs = [
19− ghostscriptX imagemagick fftw
20− boehmgc ncurses readline gsl libsigsegv
21− python zlib perl texLive texinfo xz ]
22− ++ stdenv.lib.optionals stdenv.isLinux
23− [ freeglut libGLU libGL mesa.osmesa ]
24− ++ stdenv.lib.optionals stdenv.isDarwin
25− (with darwin.apple_sdk.frameworks; [ OpenGL GLUT Cocoa ])
26− ;
27−in
28−stdenv.mkDerivation {
29− inherit (s) name version;
30− inherit buildInputs;
11+stdenv.mkDerivation rec {
12+ version = "2.60";
13+ pname = "asymptote";
3114
32− src = fetchurl {
33− inherit (s) url sha256;
15+ src = fetchFromGitHub {
16+ owner = "vectorgraphics";
17+ repo = pname;
18+ rev = version;
19+ sha256 = "1sr31r80jfswlx9a0p5bn85p6h7mq28fw8ihhnlbhphii6w8z2j9";
3420 };
3521
36− patches = [
37− # Remove when updating from 2.47 to 2.48
38− # Compatibility with BoehmGC 7.6.8
39− (fetchpatch {
40− url = "https://github.com/vectorgraphics/asymptote/commit/38a59370dc5ac720c29e1424614a10f7384b943f.patch";
41− sha256 = "0c3d11hzxxaqh24kfw9y8zvlid54kk40rx2zajx7jwl12gga05s1";
42− })
22+ nativeBuildInputs = [
23+ autoreconfHook
24+ bison
25+ flex
26+ yacc
27+ texinfo
4328 ];
4429
30+ buildInputs = [
31+ ghostscriptX imagemagick fftw
32+ boehmgc ncurses readline gsl libsigsegv
33+ zlib perl
34+ texLive
35+ ] ++ (with python3Packages; [
36+ python
37+ pyqt5
38+ ]);
39+
40+ propagatedBuildInputs = [
41+ glm
42+ ] ++ stdenv.lib.optionals stdenv.isLinux [
43+ freeglut libGLU libGL mesa.osmesa
44+ ] ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
45+ OpenGL GLUT Cocoa
46+ ]);
47+
4548 preConfigure = ''
46− export HOME="$PWD"
47− patchShebangs .
48− sed -e 's@epswrite@eps2write@g' -i runlabel.in
49− xz -d < ${texinfo.src} | tar --wildcards -x texinfo-'*'/doc/texinfo.tex
50− cp texinfo-*/doc/texinfo.tex doc/
51− rm *.tar.gz
52− configureFlags="$configureFlags --with-latex=$out/share/texmf/tex/latex --with-context=$out/share/texmf/tex/context/third"
49+ HOME=$TMP
5350 '';
5451
52+ configureFlags = [
53+ "--with-latex=$out/share/texmf/tex/latex"
54+ "--with-context=$out/share/texmf/tex/context/third"
55+ ];
56+
5557 NIX_CFLAGS_COMPILE = [ "-I${boehmgc.dev}/include/gc" ];
5658
5759 postInstall = ''
58− mv -v "$out/share/info/asymptote/"*.info $out/share/info/
60+ mv $out/share/info/asymptote/*.info $out/share/info/
5961 sed -i -e 's|(asymptote/asymptote)|(asymptote)|' $out/share/info/asymptote.info
6062 rmdir $out/share/info/asymptote
61− rm $out/share/info/dir
63+ rm -f $out/share/info/dir
6264
63− rm -rfv "$out"/share/texmf
64− mkdir -pv "$out"/share/emacs/site-lisp/${s.name}
65− mv -v "$out"/share/asymptote/*.el "$out"/share/emacs/site-lisp/${s.name}
65+ rm -rf $out/share/texmf
66+ install -Dt $out/share/emacs/site-lisp/${pname} $out/share/asymptote/*.el
6667 '';
6768
6869 enableParallelBuilding = true;
6970
7071 meta = with stdenv.lib; {
71− inherit (s) version;
7272 description = "A tool for programming graphics intended to replace Metapost";
7373 license = licenses.gpl3Plus;
7474 maintainers = [ maintainers.raskin maintainers.peti ];
pkgs/top-level/all-packages.nix+1−1
@@ -664,7 +664,7 @@ in
664664 asciiquarium = callPackage ../applications/misc/asciiquarium {};
665665
666666 asymptote = callPackage ../tools/graphics/asymptote {
667− texLive = texlive.combine { inherit (texlive) scheme-small epsf cm-super; };
667+ texLive = texlive.combine { inherit (texlive) scheme-small epsf cm-super texinfo; };
668668 gsl = gsl_1;
669669 };
670670