Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 25 lines 858 B view raw
1{ stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }: 2 3stdenv.mkDerivation rec { 4 pname = "recode"; 5 version = "3.7.6"; 6 7 # Use official tarball, avoid need to bootstrap/generate build system 8 src = fetchurl { 9 url = "https://github.com/rrthomas/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz"; 10 sha256 = "0m59sd1ca0zw1aydpc3m8sw03nc885knmccqryg7byzmqs585ia6"; 11 }; 12 13 nativeBuildInputs = [ python3 python3.pkgs.cython perl intltool flex texinfo libiconv ]; 14 buildInputs = [ libintl ]; 15 16 doCheck = true; 17 18 meta = { 19 homepage = https://github.com/rrthomas/recode; 20 description = "Converts files between various character sets and usages"; 21 platforms = stdenv.lib.platforms.unix; 22 license = stdenv.lib.licenses.gpl2Plus; 23 maintainers = with stdenv.lib.maintainers; [ jcumming ]; 24 }; 25}