1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 22:57:00 +00:00
nixpkgs/pkgs/development/libraries/libtomcrypt/default.nix
R. RyanTM 385fa8bea5 libtomcrypt: 1.18.1 -> 1.18.2 (#42993)
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
2018-07-09 00:05:45 +02:00

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;
};
}