2018-08-28 19:48:58 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-22 02:58:06 +00:00
|
|
|
pname = "imgcat";
|
|
|
|
version = "2.3.1";
|
2018-08-28 19:48:58 +00:00
|
|
|
|
2019-06-22 02:58:06 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
|
|
buildInputs = [ ncurses ];
|
2018-08-28 19:48:58 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
${autoconf}/bin/autoconf
|
|
|
|
sed -i -e "s|-ltermcap|-L ${ncurses}/lib -lncurses|" Makefile
|
|
|
|
'';
|
|
|
|
|
2019-06-22 02:58:06 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2018-08-28 19:48:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eddieantonio";
|
2019-06-22 02:58:06 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0frz40rjwi73nx2dlqvmnn56zwr29bmnngfb11hhwr7v58yfajdi";
|
2018-08-28 19:48:58 +00:00
|
|
|
};
|
|
|
|
|
2019-04-23 02:36:35 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
|
2018-08-28 19:48:58 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "It's like cat, but for images";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/eddieantonio/imgcat";
|
2018-08-28 19:48:58 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|