Merge pull request #63642 from marsam/update-imgcat

imgcat: 2.3.0 -> 2.3.1
This commit is contained in:
Mario Rodas 2019-06-23 12:13:00 -05:00 committed by GitHub
commit 6b311bef63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,25 +1,24 @@
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, ncurses }: { stdenv, fetchFromGitHub, autoconf, automake, libtool, ncurses }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "imgcat-${version}"; pname = "imgcat";
version = "2.3.0"; version = "2.3.1";
buildInputs = [ autoconf automake libtool ncurses ]; nativeBuildInputs = [ autoconf automake libtool ];
buildInputs = [ ncurses ];
preConfigure = '' preConfigure = ''
${autoconf}/bin/autoconf ${autoconf}/bin/autoconf
sed -i -e "s|-ltermcap|-L ${ncurses}/lib -lncurses|" Makefile sed -i -e "s|-ltermcap|-L ${ncurses}/lib -lncurses|" Makefile
''; '';
preInstall = '' makeFlags = [ "PREFIX=$(out)" ];
makeFlagsArray=(PREFIX="$out");
'';
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "eddieantonio"; owner = "eddieantonio";
repo = "imgcat"; repo = pname;
rev = "3d854c72f785dce0eecd9485767a7f972d54890c"; rev = "v${version}";
sha256 = "0m83c33rzxvs0w214njql2c7q3fg06wnyijch3l2s88i7frl121f"; sha256 = "0frz40rjwi73nx2dlqvmnn56zwr29bmnngfb11hhwr7v58yfajdi";
}; };
NIX_CFLAGS_COMPILE = "-Wno-error"; NIX_CFLAGS_COMPILE = "-Wno-error";