1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/graphics/imgcat/default.nix
2020-04-10 17:54:53 +01:00

35 lines
841 B
Nix

{ stdenv, fetchFromGitHub, autoconf, automake, libtool, ncurses }:
stdenv.mkDerivation rec {
pname = "imgcat";
version = "2.3.1";
nativeBuildInputs = [ autoconf automake libtool ];
buildInputs = [ ncurses ];
preConfigure = ''
${autoconf}/bin/autoconf
sed -i -e "s|-ltermcap|-L ${ncurses}/lib -lncurses|" Makefile
'';
makeFlags = [ "PREFIX=$(out)" ];
src = fetchFromGitHub {
owner = "eddieantonio";
repo = pname;
rev = "v${version}";
sha256 = "0frz40rjwi73nx2dlqvmnn56zwr29bmnngfb11hhwr7v58yfajdi";
};
NIX_CFLAGS_COMPILE = "-Wno-error";
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;
};
}