nixpkgs/pkgs/tools/text/recode/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
971 B
Nix
Raw Normal View History

2021-01-15 10:19:50 +01:00
{ lib, stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }:
stdenv.mkDerivation rec {
pname = "recode";
2022-02-25 15:11:15 +01:00
version = "3.7.12";
# 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";
2022-02-25 15:11:15 +01:00
hash = "sha256-TbHJB28E26oVlyb1AAhH5eWoOuyOXGT4ygQ4P2zaEtU=";
};
2019-11-14 13:20:35 +01:00
nativeBuildInputs = [ python3 python3.pkgs.cython perl intltool flex texinfo libiconv ];
buildInputs = [ libintl ];
2013-03-06 10:07:54 +01:00
2022-02-25 15:11:15 +01:00
enableParallelBuilding = true;
doCheck = true;
2013-03-06 10:07:54 +01:00
meta = {
homepage = "https://github.com/rrthomas/recode";
description = "Converts files between various character sets and usages";
2022-02-25 15:11:15 +01:00
changelog = "https://github.com/rrthomas/recode/raw/v${version}/NEWS";
2021-01-15 10:19:50 +01:00
platforms = lib.platforms.unix;
2022-02-25 15:11:15 +01:00
license = with lib.licenses; [ lgpl3Plus gpl3Plus ];
2021-01-15 10:19:50 +01:00
maintainers = with lib.maintainers; [ jcumming ];
};
}