lol
1/*
2Requirements for Building TrueCrypt for Linux and Mac OS X:
3-----------------------------------------------------------
4
5- GNU Make
6- GNU C++ Compiler 4.0 or compatible
7- Apple XCode (Mac OS X only)
8- pkg-config
9- wxWidgets 2.8 library source code (available at http://www.wxwidgets.org)
10- FUSE library (available at http://fuse.sourceforge.net and
11 http://code.google.com/p/macfuse)
12
13
14Instructions for Building TrueCrypt for Linux and Mac OS X:
15-----------------------------------------------------------
16
171) Change the current directory to the root of the TrueCrypt source code.
18
192) Run the following command to configure the wxWidgets library for TrueCrypt
20 and to build it:
21
22 $ make WX_ROOT=/usr/src/wxWidgets wxbuild
23
24 The variable WX_ROOT must point to the location of the source code of the
25 wxWidgets library. Output files will be placed in the './wxrelease/'
26 directory.
27
283) To build TrueCrypt, run the following command:
29
30 $ make
31
324) If successful, the TrueCrypt executable should be located in the directory
33 'Main'.
34
35By default, a universal executable supporting both graphical and text user
36interface is built. To build a console-only executable, which requires no GUI
37library, use the 'NOGUI' parameter:
38
39 $ make NOGUI=1 WX_ROOT=/usr/src/wxWidgets wxbuild
40 $ make NOGUI=1
41*/
42
43{ fetchurl, stdenv, pkgconfig, nasm, fuse, wxGTK, devicemapper,
44 wxGUI ? true
45}:
46
47stdenv.mkDerivation {
48 name = "truecrypt-7.1a";
49 builder = ./builder.sh;
50
51 src = fetchurl {
52 url = http://fossies.org/unix/misc/TrueCrypt-7.1a-Source.tar.gz;
53 sha1 = "d43e0dbe05c04e316447d87413c4f74c68f5de24";
54 };
55
56 pkcs11h = fetchurl {
57 url = ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h;
58 sha256 = "1563d877b6f8868b8eb8687358162bfb7f868104ed694beb35ae1c5cf1a58b9b";
59 };
60
61 pkcs11th = fetchurl {
62 url = ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h;
63 sha256 = "8ce68616304684f92a7e267bcc8f486441e92a5cbdfcfd97e69ac9a0b436fb7b";
64 };
65
66 pkcs11fh = fetchurl {
67 url = ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h;
68 sha256 = "5ae6a4f32ca737e02def3bf314c9842fb89be82bf00b6f4022a97d8d565522b8";
69 };
70
71 buildInputs = [ pkgconfig fuse devicemapper wxGTK nasm ];
72 makeFlags = if wxGUI then "" else "NOGUI=1";
73
74 meta = {
75 description = "Free Open-Source filesystem on-the-fly encryption";
76 homepage = http://www.truecrypt.org/;
77 license = "TrueCrypt License Version 2.6";
78 maintainers = with stdenv.lib.maintainers; [viric];
79 platforms = with stdenv.lib.platforms; linux;
80 };
81}