3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libtomcrypt/default.nix

35 lines
896 B
Nix
Raw Normal View History

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 {
name = "libtomcrypt-${version}";
version = "1.18.0";
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";
sha256 = "0ymqi0zf5gzn8pq4mnylwgg6pskml2v1p9rsjrqspyja65mgb7fs";
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; {
homepage = http://www.libtom.net/LibTomCrypt/;
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
};
}