mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 22:57:00 +00:00
385fa8bea5
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libtomcrypt/versions. These checks were done: - built on NixOS - 0 of 0 passed binary check by having a zero exit code. - 0 of 0 passed binary check by having the new version present in output. - found 1.18.2 with grep in /nix/store/gxcivln6s36ljpx9hy1lq5hlpqfgsxnc-libtomcrypt-1.18.2 - directory tree listing: https://gist.github.com/790645636784c7dcaaf758a811a9cde4 - du listing: https://gist.github.com/b4577fa288333b9d817d01858d90947d
35 lines
897 B
Nix
35 lines
897 B
Nix
{ stdenv, fetchurl, libtool }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libtomcrypt-${version}";
|
|
version = "1.18.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz";
|
|
sha256 = "113vfrgapyv72lalhd3nkw7jnks8az0gcb5wqn9hj19nhcxlrbcn";
|
|
};
|
|
|
|
nativeBuildInputs = [ libtool ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace makefile.shared --replace "LT:=glibtool" "LT:=libtool"
|
|
'';
|
|
|
|
preBuild = ''
|
|
makeFlagsArray=(PREFIX=$out \
|
|
INSTALL_GROUP=$(id -g) \
|
|
INSTALL_USER=$(id -u))
|
|
'';
|
|
|
|
makefile = "makefile.shared";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://www.libtom.net/LibTomCrypt/;
|
|
description = "A fairly comprehensive, modular and portable cryptographic toolkit";
|
|
license = with licenses; [ publicDomain wtfpl ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|