3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/imgcat/default.nix

35 lines
841 B
Nix
Raw Normal View History

2018-08-28 20:48:58 +01:00
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, ncurses }:
stdenv.mkDerivation rec {
2019-06-22 03:58:06 +01:00
pname = "imgcat";
version = "2.3.1";
2018-08-28 20:48:58 +01:00
2019-06-22 03:58:06 +01:00
nativeBuildInputs = [ autoconf automake libtool ];
buildInputs = [ ncurses ];
2018-08-28 20:48:58 +01:00
preConfigure = ''
${autoconf}/bin/autoconf
sed -i -e "s|-ltermcap|-L ${ncurses}/lib -lncurses|" Makefile
'';
2019-06-22 03:58:06 +01:00
makeFlags = [ "PREFIX=$(out)" ];
2018-08-28 20:48:58 +01:00
src = fetchFromGitHub {
owner = "eddieantonio";
2019-06-22 03:58:06 +01:00
repo = pname;
rev = "v${version}";
sha256 = "0frz40rjwi73nx2dlqvmnn56zwr29bmnngfb11hhwr7v58yfajdi";
2018-08-28 20:48:58 +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";
2018-08-28 20:48:58 +01:00
license = licenses.isc;
maintainers = with maintainers; [ jwiegley ];
platforms = platforms.unix;
};
}