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

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

44 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, python3Packages
, flex
, texinfo
, libiconv
, libintl
}:
2024-04-27 12:53:06 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "recode";
version = "3.7.14";
# Use official tarball, avoid need to bootstrap/generate build system
src = fetchurl {
2024-04-27 12:53:06 +00:00
url = "https://github.com/rrthomas/recode/releases/download/v${finalAttrs.version}/recode-${finalAttrs.version}.tar.gz";
hash = "sha256-eGqv1USFGisTsKN36sFQD4IM5iYVzMLmMLUB53Q7nzM=";
};
nativeBuildInputs = [ python3Packages.python flex texinfo libiconv ];
buildInputs = [ libintl ];
2013-03-06 09:07:54 +00:00
2022-02-25 14:11:15 +00:00
enableParallelBuilding = true;
doCheck = true;
2013-03-06 09:07:54 +00:00
nativeCheckInputs = with python3Packages; [
cython
setuptools
];
meta = {
homepage = "https://github.com/rrthomas/recode";
description = "Converts files between various character sets and usages";
mainProgram = "recode";
2024-04-27 12:53:06 +00:00
changelog = "https://github.com/rrthomas/recode/raw/v${finalAttrs.version}/NEWS";
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.unix;
2022-02-25 14:11:15 +00:00
license = with lib.licenses; [ lgpl3Plus gpl3Plus ];
2021-01-15 09:19:50 +00:00
maintainers = with lib.maintainers; [ jcumming ];
};
2024-04-27 12:53:06 +00:00
})