about summary refs log tree commit diff
path: root/pkgs/applications/editors/molsketch/default.nix
blob: cb94cef3a328f2c71097a8b917c974d25908bf07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, stdenv
, mkDerivation
, fetchurl
, cmake
, pkg-config
, hicolor-icon-theme
, openbabel
, desktop-file-utils
, qttranslations
}:

mkDerivation rec {
  pname = "molsketch";
  version = "0.7.3";

  src = fetchurl {
    url = "mirror://sourceforge/molsketch/Molsketch-${version}-src.tar.gz";
    hash = "sha256-82iNJRiXqESwidjifKBf0+ljcqbFD1WehsXI8VUgrwQ=";
  };

  preConfigure = ''
    cmakeFlags="$cmakeFlags -DMSK_PREFIX=$out"
  '';

  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [
    hicolor-icon-theme
    openbabel
    desktop-file-utils
    qttranslations
  ];

  meta = with lib; {
    description = "2D molecule editor";
    homepage = "https://sourceforge.net/projects/molsketch/";
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.fortuneteller2k ];
  };
}