Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 37 lines 1.2 kB view raw
1{ stdenv, fetchFromGitHub, python, perl, intltool, flex, autoreconfHook 2, texinfo, libiconv, libintl }: 3 4stdenv.mkDerivation rec { 5 name = "recode-3.7-2fd838565"; 6 7 src = fetchFromGitHub { 8 owner = "pinard"; 9 repo = "Recode"; 10 rev = "2fd8385658e5a08700e3b916053f6680ff85fdbd"; 11 sha256 = "06vyjqaraamcc5vka66mlvxj27ihccqc74aymv2wn8nphr2rhh03"; 12 }; 13 14 nativeBuildInputs = [ python perl intltool flex texinfo autoreconfHook libiconv ]; 15 buildInputs = [ libintl ]; 16 17 preAutoreconf = '' 18 # fix build with new automake, https://bugs.gentoo.org/show_bug.cgi?id=419455 19 substituteInPlace Makefile.am --replace "ACLOCAL = ./aclocal.sh @ACLOCAL@" "" 20 sed -i '/^AM_C_PROTOTYPES/d' configure.ac 21 substituteInPlace src/Makefile.am --replace "ansi2knr" "" 22 ''; 23 24 doCheck = false; # fails 10 out of 16 tests 25 26 preCheck = '' 27 checkFlagsArray=(CPPFLAGS="-I../lib" LDFLAGS="-L../src/.libs -Wl,-rpath=../src/.libs") 28 ''; 29 30 meta = { 31 homepage = https://www.gnu.org/software/recode/; 32 description = "Converts files between various character sets and usages"; 33 platforms = stdenv.lib.platforms.unix; 34 license = stdenv.lib.licenses.gpl2Plus; 35 maintainers = with stdenv.lib.maintainers; [ jcumming ]; 36 }; 37}