at master 31 lines 803 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7# This package requires a locale ru_RU.cp1251 locale entry. 8# Waiting for a better idea, I created it modifying a store file using: 9# localedef -f CP1251 -i ru_RU ru_RU.CP1251 10# The store file mentioned is in "${glibc.out}/lib/locale/locale-archive" 11 12stdenv.mkDerivation { 13 pname = "multitran-data"; 14 version = "0.3"; 15 16 src = fetchurl { 17 url = "mirror://sourceforge/multitran/multitran-data.tar.bz2"; 18 sha256 = "9c2ff5027c2fe72b0cdf056311cd7543f447feb02b455982f20d4a3966b7828c"; 19 }; 20 21 patchPhase = '' 22 sed -i -e 's@\$(DESTDIR)/usr@'$out'@' Makefile 23 ''; 24 25 meta = { 26 homepage = "https://multitran.sourceforge.net/"; 27 description = "Multitran data english-russian"; 28 license = lib.licenses.gpl2Only; 29 platforms = lib.platforms.unix; 30 }; 31}