11 stdenv.mkDerivation rec {
13 version = "0.0.1alpha3";
16 url = "mirror://sourceforge/multitran/libmtquery-${version}.tar.bz2";
17 sha256 = "e24c7c15772445f1b14871928d84dd03cf93bd88f9d2b2ed1bf0257c2cf2b15e";
27 NIX_LDFLAGS = "-lbtree";
30 sed -i -e 's@\$(DESTDIR)/usr@'$out'@' \
31 -e 's@/usr/include/mt/support@${libmtsupport}/include/mt/support@' \
32 -e 's@/usr/include/btree@${libbtree}/include/btree@' \
33 -e 's@/usr/include/facet@${libfacet}/include/facet@' \
34 src/Makefile testsuite/Makefile;
35 sed -i -e 's@/usr/share/multitran@${multitrandata}/share/multitran@' src/config.cc
39 homepage = "https://multitran.sourceforge.net/";
40 description = "Multitran lib: main engine to query translations";
41 license = lib.licenses.gpl2Only;
42 platforms = lib.platforms.linux;