1 { lib, stdenv, fetchFromGitHub, cimg, ncurses }:
3 stdenv.mkDerivation rec {
7 buildInputs = [ ncurses cimg ];
10 sed -i -e "s|-ltermcap|-L ${ncurses}/lib -lncurses|" Makefile
13 makeFlags = [ "PREFIX=$(out)" ];
15 src = fetchFromGitHub {
16 owner = "eddieantonio";
19 sha256 = "sha256-EkVE6BgoA1lo4oqlNETTxLILIVvGXspFyXykxpmYk8M=";
22 NIX_CFLAGS_COMPILE = "-Wno-error";
25 description = "It's like cat, but for images";
26 homepage = "https://github.com/eddieantonio/imgcat";
27 license = licenses.isc;
28 maintainers = with maintainers; [ jwiegley ];
29 platforms = platforms.unix;