2018-08-28 20:48:58 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "imgcat-${version}";
|
|
|
|
version = "2.3.0";
|
|
|
|
|
2018-09-03 01:07:12 +01:00
|
|
|
buildInputs = [ autoconf automake libtool ncurses ];
|
2018-08-28 20:48:58 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
${autoconf}/bin/autoconf
|
|
|
|
sed -i -e "s|-ltermcap|-L ${ncurses}/lib -lncurses|" Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
makeFlagsArray=(PREFIX="$out");
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eddieantonio";
|
|
|
|
repo = "imgcat";
|
|
|
|
rev = "3d854c72f785dce0eecd9485767a7f972d54890c";
|
|
|
|
sha256 = "0m83c33rzxvs0w214njql2c7q3fg06wnyijch3l2s88i7frl121f";
|
|
|
|
};
|
|
|
|
|
2019-04-23 03:36:35 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
|
2018-08-28 20:48:58 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "It's like cat, but for images";
|
|
|
|
homepage = https://github.com/eddieantonio/imgcat;
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|