python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / graphics / imgcat / default.nix
blobb904dec0856990209312fb52cb6dab70db467ca9
1 { lib, stdenv, fetchFromGitHub, cimg, ncurses }:
3 stdenv.mkDerivation rec {
4   pname = "imgcat";
5   version = "2.5.1";
7   buildInputs = [ ncurses cimg ];
9   preConfigure = ''
10     sed -i -e "s|-ltermcap|-L ${ncurses}/lib -lncurses|" Makefile
11   '';
13   makeFlags = [ "PREFIX=$(out)" ];
15   src = fetchFromGitHub {
16     owner = "eddieantonio";
17     repo = pname;
18     rev = "v${version}";
19     sha256 = "sha256-EkVE6BgoA1lo4oqlNETTxLILIVvGXspFyXykxpmYk8M=";
20   };
22   NIX_CFLAGS_COMPILE = "-Wno-error";
24   meta = with lib; {
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;
30   };