Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, fetchpatch }: 2 3stdenv.mkDerivation rec { 4 pname = "nkf"; 5 version = "2.1.5"; 6 7 src = fetchurl { 8 url = "mirror://osdn/nkf/70406/${pname}-${version}.tar.gz"; 9 sha256 = "0i5dbcb9aipwr8ym4mhvgf1in3frl6y8h8x96cprz9s7b11xz9yi"; 10 }; 11 12 patches = [ 13 # Pull upstream fix for parllel build failures 14 (fetchpatch { 15 name = "parallel-install.patch"; 16 url = "http://git.osdn.net/view?p=nkf/nkf.git;a=patch;h=9ccff5975bec7963e591e042e1ab1139252a4dc9"; 17 sha256 = "00f0x414gfch650b20w0yj5x2bd67hchmadl7v54lk3vdgkc6jwj"; 18 }) 19 ]; 20 21 makeFlags = [ "prefix=$(out)" ]; 22 23 meta = { 24 description = "Tool for converting encoding of Japanese text"; 25 homepage = "https://nkf.osdn.jp/"; 26 license = lib.licenses.zlib; 27 platforms = lib.platforms.unix; 28 maintainers = [ lib.maintainers.auntie ]; 29 }; 30}