diff options
author | John Wiegley <johnw@newartisans.com> | 2018-08-28 12:48:58 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2018-08-28 12:51:09 -0700 |
commit | fa817fb9f703e290344f383b66bb67576458970f (patch) | |
tree | bd804d07e6ac46bed7de785e59443b773758bfdf /pkgs/applications/graphics/imgcat | |
parent | 467396244079d3a0188c2aa97fe55d3a3bca6870 (diff) | |
download | nixpkgs-fa817fb9f703e290344f383b66bb67576458970f.tar nixpkgs-fa817fb9f703e290344f383b66bb67576458970f.tar.gz nixpkgs-fa817fb9f703e290344f383b66bb67576458970f.tar.bz2 nixpkgs-fa817fb9f703e290344f383b66bb67576458970f.tar.lz nixpkgs-fa817fb9f703e290344f383b66bb67576458970f.tar.xz nixpkgs-fa817fb9f703e290344f383b66bb67576458970f.tar.zst nixpkgs-fa817fb9f703e290344f383b66bb67576458970f.zip |
imgcat: New expression 2.3.0
Diffstat (limited to 'pkgs/applications/graphics/imgcat')
-rw-r--r-- | pkgs/applications/graphics/imgcat/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/imgcat/default.nix b/pkgs/applications/graphics/imgcat/default.nix new file mode 100644 index 00000000000..ad2cb4198d2 --- /dev/null +++ b/pkgs/applications/graphics/imgcat/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, autoconf, automake, libtool, ncurses }: + +stdenv.mkDerivation rec { + name = "imgcat-${version}"; + version = "2.3.0"; + + buildTools = [ autoconf automake libtool ncurses ]; + + preConfigure = '' + ${autoconf}/bin/autoconf + sed -i -e "s|-ltermcap|-L ${ncurses}/lib -lncurses|" Makefile + ''; + + preInstall = '' + makeFlagsArray=(PREFIX="$out"); + ''; + + src = fetchFromGitHub { + owner = "eddieantonio"; + repo = "imgcat"; + rev = "3d854c72f785dce0eecd9485767a7f972d54890c"; + sha256 = "0m83c33rzxvs0w214njql2c7q3fg06wnyijch3l2s88i7frl121f"; + }; + + 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; + }; +} + |