nixpkgs/pkgs/tools/text/recode/default.nix
2013-03-06 01:07:54 -08:00

30 lines
790 B
Nix

# XXX: this may need -liconv on non-glibc systems..
{stdenv, fetchgit, python, perl}:
stdenv.mkDerivation rec {
name = "recode-3.7-pff85fdbd";
src = fetchgit {
url = https://github.com/pinard/Recode.git;
rev = "2fd8385658e5a08700e3b916053f6680ff85fdbd";
sha256 = "1xhlfmqld6af16l444jli9crj9brym2jihg1n6lkxh2gar68f5l7";
};
buildInputs = [ python perl ];
doCheck = true;
preCheck = ''
checkFlagsArray=(LDFLAGS="-L../src/.libs -Wl,-rpath=../src/.libs")
'';
meta = {
homepage = "http://www.gnu.org/software/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 ];
};
}