1 {lib, stdenv, fetchurl, libmtsupport, libfacet, libbtree, multitrandata } :
3 stdenv.mkDerivation rec {
5 version = "0.0.1alpha3";
8 url = "mirror://sourceforge/multitran/libmtquery-${version}.tar.bz2";
9 sha256 = "e24c7c15772445f1b14871928d84dd03cf93bd88f9d2b2ed1bf0257c2cf2b15e";
12 buildInputs = [ libmtsupport libfacet libbtree multitrandata ];
14 NIX_LDFLAGS = "-lbtree";
17 sed -i -e 's@\$(DESTDIR)/usr@'$out'@' \
18 -e 's@/usr/include/mt/support@${libmtsupport}/include/mt/support@' \
19 -e 's@/usr/include/btree@${libbtree}/include/btree@' \
20 -e 's@/usr/include/facet@${libfacet}/include/facet@' \
21 src/Makefile testsuite/Makefile;
22 sed -i -e 's@/usr/share/multitran@${multitrandata}/share/multitran@' src/config.cc
26 homepage = "https://multitran.sourceforge.net/";
27 description = "Multitran lib: main engine to query translations";
28 license = lib.licenses.gpl2Only;
29 platforms = lib.platforms.linux;