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