1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 16:15:30 +00:00
nixpkgs/pkgs/tools/text/recode/default.nix
2020-11-18 15:43:08 +01:00

26 lines
860 B
Nix

{ stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }:
stdenv.mkDerivation rec {
pname = "recode";
version = "3.7.8";
# Use official tarball, avoid need to bootstrap/generate build system
src = fetchurl {
url = "https://github.com/rrthomas/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
sha256 = "19yg20z1smj9kag1axgvc4s4kd6jmw75h0pa8xqxl3xqqyn5rdsg";
};
nativeBuildInputs = [ python3 python3.pkgs.cython perl intltool flex texinfo libiconv ];
buildInputs = [ libintl ];
doCheck = true;
meta = {
homepage = "https://github.com/rrthomas/recode";
description = "Converts files between various character sets and usages";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [ jcumming ];
};
}