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";
|
2023-12-19 07:44:26 +00:00
|
|
|
version = "2.6.0";
|
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}";
|
2023-12-19 07:44:26 +00:00
|
|
|
sha256 = "sha256-miFjlahTI0GDpgsjnA/K1R4R5654M8AoK78CycoLTqA=";
|
2018-08-28 19:48:58 +00:00
|
|
|
};
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error";
|
2019-04-23 02:36:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-28 19:48:58 +00:00
|
|
|
description = "It's like cat, but for images";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/eddieantonio/imgcat";
|
2018-08-28 19:48:58 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = platforms.unix;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "imgcat";
|
2018-08-28 19:48:58 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|