libtomcrypt: 1.17 -> 1.18.0

This commit is contained in:
c0bw3b 2017-11-08 23:04:09 +01:00
parent ddd9ed949b
commit a92dc4eae1

View File

@ -1,27 +1,34 @@
{stdenv, fetchurl, libtool}: { stdenv, fetchurl, libtool }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "libtomcrypt-1.17"; name = "libtomcrypt-${version}";
version = "1.18.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/libtom/libtomcrypt/releases/download/1.17/crypt-1.17.tar.bz2"; url = "https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz";
sha256 = "e33b47d77a495091c8703175a25c8228aff043140b2554c08a3c3cd71f79d116"; sha256 = "0ymqi0zf5gzn8pq4mnylwgg6pskml2v1p9rsjrqspyja65mgb7fs";
}; };
buildInputs = [libtool]; nativeBuildInputs = [ libtool ];
postPatch = ''
substituteInPlace makefile.shared --replace "LT:=glibtool" "LT:=libtool"
'';
preBuild = '' preBuild = ''
makeFlagsArray=(LIBPATH=$out/lib INCPATH=$out/include \ makeFlagsArray=(PREFIX=$out \
DATAPATH=$out/share/doc/libtomcrypt/pdf \
INSTALL_GROUP=$(id -g) \ INSTALL_GROUP=$(id -g) \
INSTALL_USER=$(id -u)) INSTALL_USER=$(id -u))
''; '';
makefile = "makefile.shared"; makefile = "makefile.shared";
meta = { enableParallelBuilding = true;
homepage = http://libtom.org/?page=features&newsitems=5&whatfile=crypt;
meta = with stdenv.lib; {
homepage = http://www.libtom.net/LibTomCrypt/;
description = "A fairly comprehensive, modular and portable cryptographic toolkit"; description = "A fairly comprehensive, modular and portable cryptographic toolkit";
platforms = stdenv.lib.platforms.linux; license = with licenses; [ publicDomain wtfpl ];
platforms = platforms.linux;
}; };
} }