Merge pull request #111697 from AndersonTorres/chemtool
This commit is contained in:
commit
9a15b4dd19
@ -1,5 +1,15 @@
|
|||||||
{ lib, stdenv, fetchurl, ghostscript, libpng, makeWrapper
|
{ lib
|
||||||
, coreutils, bc, gnugrep, gawk, gnused } :
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, ghostscript
|
||||||
|
, libpng
|
||||||
|
, makeWrapper
|
||||||
|
, coreutils
|
||||||
|
, bc
|
||||||
|
, gnugrep
|
||||||
|
, gawk
|
||||||
|
, gnused
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fig2dev";
|
pname = "fig2dev";
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
{ lib, stdenv, fetchurl, xlibsWrapper, makeWrapper, libXpm
|
{ lib
|
||||||
, libXmu, libXi, libXp, Xaw3d, libXaw, fig2dev
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, xlibsWrapper
|
||||||
|
, makeWrapper
|
||||||
|
, libXpm
|
||||||
|
, libXmu
|
||||||
|
, libXi
|
||||||
|
, libXp
|
||||||
|
, Xaw3d
|
||||||
|
, libXaw
|
||||||
|
, fig2dev
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -11,6 +21,18 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1czamqp0xn0j6qjnasa3fjnrzi072v6qknylr6jrs4gwsfw4ybyw";
|
sha256 = "1czamqp0xn0j6qjnasa3fjnrzi072v6qknylr6jrs4gwsfw4ybyw";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
xlibsWrapper
|
||||||
|
libXpm
|
||||||
|
libXmu
|
||||||
|
libXi
|
||||||
|
libXp
|
||||||
|
Xaw3d
|
||||||
|
libXaw
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's:"fig2dev":"${fig2dev}/bin/fig2dev":' src/main.c
|
sed -i 's:"fig2dev":"${fig2dev}/bin/fig2dev":' src/main.c
|
||||||
'';
|
'';
|
||||||
@ -25,10 +47,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
buildInputs = [ xlibsWrapper libXpm libXmu libXi libXp Xaw3d libXaw ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An interactive drawing tool for X11";
|
description = "An interactive drawing tool for X11";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
50
pkgs/applications/science/chemistry/chemtool/default.nix
Normal file
50
pkgs/applications/science/chemistry/chemtool/default.nix
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, pkg-config
|
||||||
|
, libX11
|
||||||
|
, gtk2
|
||||||
|
, fig2dev
|
||||||
|
, wrapGAppsHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "chemtool";
|
||||||
|
version = "1.6.14";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://ruby.chemie.uni-freiburg.de/~martin/${pname}/${pname}-${version}.tar.gz";
|
||||||
|
sha256 = "hhYaBGE4azNKX/sXzfCUpJGUGIRngnL0V0mBNRTdr8s=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
||||||
|
buildInputs = [
|
||||||
|
libX11
|
||||||
|
gtk2
|
||||||
|
fig2dev
|
||||||
|
];
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ fig2dev ]}")
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "http://ruby.chemie.uni-freiburg.de/~martin/chemtool/";
|
||||||
|
description = "Draw chemical structures";
|
||||||
|
longDescription = ''
|
||||||
|
Chemtool is a program for drawing organic molecules. It runs under the X
|
||||||
|
Window System using the GTK widget set.
|
||||||
|
|
||||||
|
Most operations in chemtool can be accomplished using the mouse - the
|
||||||
|
first (usually the left) button is used to select or place things, the
|
||||||
|
middle button modifies properties (e.g. reverses the direction of a bond),
|
||||||
|
and the right button is used to delete objects.
|
||||||
|
|
||||||
|
The program offers essentially unlimited undo/redo, two text fonts plus
|
||||||
|
symbols, seven colors, drawing at several zoom scales, and square and
|
||||||
|
hexagonal backdrop grids for easier alignment.
|
||||||
|
'';
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
|
};
|
||||||
|
}
|
@ -27404,6 +27404,8 @@ in
|
|||||||
eigen = eigen2;
|
eigen = eigen2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
chemtool = callPackage ../applications/science/chemistry/chemtool { };
|
||||||
|
|
||||||
d-seams = callPackage ../applications/science/chemistry/d-seams {};
|
d-seams = callPackage ../applications/science/chemistry/d-seams {};
|
||||||
|
|
||||||
gwyddion = callPackage ../applications/science/chemistry/gwyddion {};
|
gwyddion = callPackage ../applications/science/chemistry/gwyddion {};
|
||||||
|
Loading…
Reference in New Issue
Block a user