nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{stdenv, fetchurl, libtool}:
2
3stdenv.mkDerivation {
4 name = "libtomcrypt-1.17";
5
6 src = fetchurl {
7 url = "https://github.com/libtom/libtomcrypt/releases/download/1.17/crypt-1.17.tar.bz2";
8 sha256 = "e33b47d77a495091c8703175a25c8228aff043140b2554c08a3c3cd71f79d116";
9 };
10
11 buildInputs = [libtool];
12
13 preBuild = ''
14 makeFlagsArray=(LIBPATH=$out/lib INCPATH=$out/include \
15 DATAPATH=$out/share/doc/libtomcrypt/pdf \
16 INSTALL_GROUP=$(id -g) \
17 INSTALL_USER=$(id -u))
18 '';
19
20 makefile = "makefile.shared";
21
22 meta = {
23 homepage = http://libtom.org/?page=features&newsitems=5&whatfile=crypt;
24 description = "A fairly comprehensive, modular and portable cryptographic toolkit";
25 platforms = stdenv.lib.platforms.linux;
26 };
27}