Merge pull request #111697 from AndersonTorres/chemtool

authored by

Sandro and committed by
GitHub
9a15b4dd 71ab9d5d

+88 -8
+12 -2
pkgs/applications/graphics/fig2dev/default.nix
··· 1 - { lib, stdenv, fetchurl, ghostscript, libpng, makeWrapper 2 - , coreutils, bc, gnugrep, gawk, gnused } : 3 4 stdenv.mkDerivation rec { 5 pname = "fig2dev";
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , ghostscript 5 + , libpng 6 + , makeWrapper 7 + , coreutils 8 + , bc 9 + , gnugrep 10 + , gawk 11 + , gnused 12 + }: 13 14 stdenv.mkDerivation rec { 15 pname = "fig2dev";
+24 -6
pkgs/applications/graphics/xfig/default.nix
··· 1 - { lib, stdenv, fetchurl, xlibsWrapper, makeWrapper, libXpm 2 - , libXmu, libXi, libXp, Xaw3d, libXaw, fig2dev 3 }: 4 5 stdenv.mkDerivation rec { ··· 11 sha256 = "1czamqp0xn0j6qjnasa3fjnrzi072v6qknylr6jrs4gwsfw4ybyw"; 12 }; 13 14 postPatch = '' 15 sed -i 's:"fig2dev":"${fig2dev}/bin/fig2dev":' src/main.c 16 ''; ··· 24 ''; 25 26 enableParallelBuilding = true; 27 - 28 - nativeBuildInputs = [ makeWrapper ]; 29 - 30 - buildInputs = [ xlibsWrapper libXpm libXmu libXi libXp Xaw3d libXaw ]; 31 32 meta = with lib; { 33 description = "An interactive drawing tool for X11";
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , xlibsWrapper 5 + , makeWrapper 6 + , libXpm 7 + , libXmu 8 + , libXi 9 + , libXp 10 + , Xaw3d 11 + , libXaw 12 + , fig2dev 13 }: 14 15 stdenv.mkDerivation rec { ··· 21 sha256 = "1czamqp0xn0j6qjnasa3fjnrzi072v6qknylr6jrs4gwsfw4ybyw"; 22 }; 23 24 + nativeBuildInputs = [ makeWrapper ]; 25 + 26 + buildInputs = [ 27 + xlibsWrapper 28 + libXpm 29 + libXmu 30 + libXi 31 + libXp 32 + Xaw3d 33 + libXaw 34 + ]; 35 + 36 postPatch = '' 37 sed -i 's:"fig2dev":"${fig2dev}/bin/fig2dev":' src/main.c 38 ''; ··· 46 ''; 47 48 enableParallelBuilding = true; 49 50 meta = with lib; { 51 description = "An interactive drawing tool for X11";
+50
pkgs/applications/science/chemistry/chemtool/default.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , pkg-config 5 + , libX11 6 + , gtk2 7 + , fig2dev 8 + , wrapGAppsHook 9 + }: 10 + 11 + stdenv.mkDerivation rec { 12 + pname = "chemtool"; 13 + version = "1.6.14"; 14 + 15 + src = fetchurl { 16 + url = "http://ruby.chemie.uni-freiburg.de/~martin/${pname}/${pname}-${version}.tar.gz"; 17 + sha256 = "hhYaBGE4azNKX/sXzfCUpJGUGIRngnL0V0mBNRTdr8s="; 18 + }; 19 + 20 + nativeBuildInputs = [ pkg-config wrapGAppsHook ]; 21 + buildInputs = [ 22 + libX11 23 + gtk2 24 + fig2dev 25 + ]; 26 + 27 + preFixup = '' 28 + gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ fig2dev ]}") 29 + ''; 30 + 31 + meta = with lib; { 32 + homepage = "http://ruby.chemie.uni-freiburg.de/~martin/chemtool/"; 33 + description = "Draw chemical structures"; 34 + longDescription = '' 35 + Chemtool is a program for drawing organic molecules. It runs under the X 36 + Window System using the GTK widget set. 37 + 38 + Most operations in chemtool can be accomplished using the mouse - the 39 + first (usually the left) button is used to select or place things, the 40 + middle button modifies properties (e.g. reverses the direction of a bond), 41 + and the right button is used to delete objects. 42 + 43 + The program offers essentially unlimited undo/redo, two text fonts plus 44 + symbols, seven colors, drawing at several zoom scales, and square and 45 + hexagonal backdrop grids for easier alignment. 46 + ''; 47 + license = licenses.mit; 48 + maintainers = with maintainers; [ AndersonTorres ]; 49 + }; 50 + }
+2
pkgs/top-level/all-packages.nix
··· 27404 eigen = eigen2; 27405 }; 27406 27407 d-seams = callPackage ../applications/science/chemistry/d-seams {}; 27408 27409 gwyddion = callPackage ../applications/science/chemistry/gwyddion {};
··· 27404 eigen = eigen2; 27405 }; 27406 27407 + chemtool = callPackage ../applications/science/chemistry/chemtool { }; 27408 + 27409 d-seams = callPackage ../applications/science/chemistry/d-seams {}; 27410 27411 gwyddion = callPackage ../applications/science/chemistry/gwyddion {};