diff options
author | fortuneteller2k <lythe1107@gmail.com> | 2022-12-30 22:04:28 +0800 |
---|---|---|
committer | fortuneteller2k <lythe1107@gmail.com> | 2023-01-03 02:25:01 +0800 |
commit | ca34a788fe4bb96b8bb14a9db195fb33eb7fe11f (patch) | |
tree | dde9288632c6d075f67476a8711ea23b32fb153a /pkgs/applications/editors/molsketch | |
parent | 04f4be9a29f41ad2b0907942a1820da2ada1431e (diff) |
molsketch: init at 0.7.3
Co-authored-by: markuskowa <markus.kowalewski@gmail.com>
Diffstat (limited to 'pkgs/applications/editors/molsketch')
-rw-r--r-- | pkgs/applications/editors/molsketch/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/editors/molsketch/default.nix b/pkgs/applications/editors/molsketch/default.nix new file mode 100644 index 0000000000000..cb94cef3a328f --- /dev/null +++ b/pkgs/applications/editors/molsketch/default.nix @@ -0,0 +1,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 ]; + }; +} |