2017-11-08 22:04:09 +00:00
|
|
|
{ stdenv, fetchurl, libtool }:
|
2014-10-15 02:05:51 +01:00
|
|
|
|
2017-11-08 22:04:09 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libtomcrypt";
|
2018-07-08 23:05:45 +01:00
|
|
|
version = "1.18.2";
|
2014-10-15 02:05:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-11-08 22:04:09 +00:00
|
|
|
url = "https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz";
|
2018-07-08 23:05:45 +01:00
|
|
|
sha256 = "113vfrgapyv72lalhd3nkw7jnks8az0gcb5wqn9hj19nhcxlrbcn";
|
2014-10-15 02:05:51 +01:00
|
|
|
};
|
|
|
|
|
2017-11-08 22:04:09 +00:00
|
|
|
nativeBuildInputs = [ libtool ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace makefile.shared --replace "LT:=glibtool" "LT:=libtool"
|
|
|
|
'';
|
2014-10-15 02:05:51 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
2017-11-08 22:04:09 +00:00
|
|
|
makeFlagsArray=(PREFIX=$out \
|
2014-10-15 02:05:51 +01:00
|
|
|
INSTALL_GROUP=$(id -g) \
|
|
|
|
INSTALL_USER=$(id -u))
|
|
|
|
'';
|
|
|
|
|
|
|
|
makefile = "makefile.shared";
|
|
|
|
|
2017-11-08 22:04:09 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-06-23 12:34:55 +01:00
|
|
|
homepage = https://www.libtom.net/LibTomCrypt/;
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A fairly comprehensive, modular and portable cryptographic toolkit";
|
2017-11-08 22:04:09 +00:00
|
|
|
license = with licenses; [ publicDomain wtfpl ];
|
|
|
|
platforms = platforms.linux;
|
2014-10-15 02:05:51 +01:00
|
|
|
};
|
|
|
|
}
|