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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
742 B
Nix
Raw Normal View History

2022-07-09 11:55:00 +00:00
{ lib, stdenv, fetchFromGitHub, cimg, ncurses }:
2018-08-28 19:48:58 +00:00
stdenv.mkDerivation rec {
2019-06-22 02:58:06 +00:00
pname = "imgcat";
2022-07-09 11:55:00 +00:00
version = "2.5.1";
2018-08-28 19:48:58 +00:00
2022-07-09 11:55:00 +00:00
buildInputs = [ ncurses cimg ];
2018-08-28 19:48:58 +00:00
preConfigure = ''
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}";
2022-07-09 11:55:00 +00:00
sha256 = "sha256-EkVE6BgoA1lo4oqlNETTxLILIVvGXspFyXykxpmYk8M=";
2018-08-28 19:48:58 +00:00
};
env.NIX_CFLAGS_COMPILE = "-Wno-error";
meta = with lib; {
2018-08-28 19:48:58 +00:00
description = "It's like cat, but for images";
homepage = "https://github.com/eddieantonio/imgcat";
2018-08-28 19:48:58 +00:00
license = licenses.isc;
maintainers = with maintainers; [ jwiegley ];
platforms = platforms.unix;
};
}