nixpkgs/pkgs/applications/graphics/imgcat/default.nix

35 lines
839 B
Nix
Raw Normal View History

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
};
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";
homepage = https://github.com/eddieantonio/imgcat;
license = licenses.isc;
maintainers = with maintainers; [ jwiegley ];
platforms = platforms.unix;
};
}