nixpkgs/pkgs/by-name/im/imgcat/package.nix

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

34 lines
770 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";
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
};
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;
2024-02-11 02:19:15 +00:00
mainProgram = "imgcat";
2018-08-28 19:48:58 +00:00
};
}