mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
26 lines
843 B
Nix
26 lines
843 B
Nix
{ lib, stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "recode";
|
|
version = "3.7.9";
|
|
|
|
# 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 = "sha256-5DIKaw9c2DfNtFT7WFQBjd+pcJEWCOHwHMLGX2M2csQ=";
|
|
};
|
|
|
|
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 = lib.platforms.unix;
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ jcumming ];
|
|
};
|
|
}
|