2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl, libmtsupport, libfacet, libbtree, multitrandata } :
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libmtquery";
|
|
|
|
version = "0.0.1alpha3";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-09-18 10:52:07 +00:00
|
|
|
url = "mirror://sourceforge/multitran/libmtquery-${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "e24c7c15772445f1b14871928d84dd03cf93bd88f9d2b2ed1bf0257c2cf2b15e";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libmtsupport libfacet libbtree multitrandata ];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lbtree";
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's@\$(DESTDIR)/usr@'$out'@' \
|
|
|
|
-e 's@/usr/include/mt/support@${libmtsupport}/include/mt/support@' \
|
|
|
|
-e 's@/usr/include/btree@${libbtree}/include/btree@' \
|
|
|
|
-e 's@/usr/include/facet@${libfacet}/include/facet@' \
|
|
|
|
src/Makefile testsuite/Makefile;
|
|
|
|
sed -i -e 's@/usr/share/multitran@${multitrandata}/share/multitran@' src/config.cc
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://multitran.sourceforge.net/";
|
|
|
|
description = "Multitran lib: main engine to query translations";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|