Added truecrypt, but it does not compile yet since it's dependency wxWidgets fails to build ...

Maybe someone wants to take a look at it.

--------------------
building wxbuild
Configuring wxWidgets library...
configure: WARNING: libSM not found; disabling session management detection
Building wxWidgets library...
building .pch/wxprec_baselib/wx/wxprec.h.gch
/nix/store/b2gmgy8y6nidjj7n34jx4sanrjdaxrw3-glibc-2.7/lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [.pch/wxprec_baselib/wx/wxprec.h.gch] Error 1
make: *** [wxbuild] Error 2
builder for `/nix/store/2587m38s6cjjpx7mvn85x8z65brf6nps-trueCrypt-6.0a.drv' failed with exit code 2
error: build of `/nix/store/2587m38s6cjjpx7mvn85x8z65brf6nps-trueCrypt-6.0a.drv' failed
--------------------

svn path=/nixpkgs/trunk/; revision=12388
This commit is contained in:
Wouter den Breejen 2008-07-19 16:13:48 +00:00
parent e2a6d56a0d
commit c65a64c8c5
2 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,15 @@
source $stdenv/setup
# PATH=$perl/bin:$PATH
tar zxvf $wxWidgets
# we need the absolute path, relative will not work
wxwdir=$(pwd)/wxX11-*
tar xvfz $src
cd truecrypt-*
make WX_ROOT=$wxwdir wxbuild
make

View file

@ -0,0 +1,63 @@
/*
Requirements for Building TrueCrypt for Linux and Mac OS X:
-----------------------------------------------------------
- GNU Make
- GNU C++ Compiler 4.0 or compatible
- Apple XCode (Mac OS X only)
- pkg-config
- wxWidgets 2.8 library source code (available at http://www.wxwidgets.org)
- FUSE library (available at http://fuse.sourceforge.net and
http://code.google.com/p/macfuse)
Instructions for Building TrueCrypt for Linux and Mac OS X:
-----------------------------------------------------------
1) Change the current directory to the root of the TrueCrypt source code.
2) Run the following command to configure the wxWidgets library for TrueCrypt
and to build it:
$ make WX_ROOT=/usr/src/wxWidgets wxbuild
The variable WX_ROOT must point to the location of the source code of the
wxWidgets library. Output files will be placed in the './wxrelease/'
directory.
3) To build TrueCrypt, run the following command:
$ make
4) If successful, the TrueCrypt executable should be located in the directory
'Main'.
By default, a universal executable supporting both graphical and text user
interface is built. To build a console-only executable, which requires no GUI
library, use the 'NOGUI' parameter:
$ make NOGUI=1 WX_ROOT=/usr/src/wxWidgets wxbuild
$ make NOGUI=1
*/
{ fetchurl, stdenv, pkgconfig, fuse, gtk, libSM, glibc
}:
stdenv.mkDerivation {
name = "trueCrypt-6.0a";
builder = ./builder.sh;
src = fetchurl {
url = http://www.sfr-fresh.com/unix/misc/TrueCrypt-6.0a-Source.tar.gz;
sha256 = "dea0ac2f1f6964d7e88f6751fa9f0a89d0dbfb957e9a557e8dee48492d0b4fac";
};
wxWidgets = fetchurl {
url = mirror://sourceforge/wxwindows/wxX11-2.8.8.tar.gz;
sha256 = "85e1a458fd9523c68b22af0a51eb507b792894e9ba58a560f9dbe7b6faa6f625";
};
buildInputs = [pkgconfig fuse gtk libSM glibc];
#configureFlags =
#postInstall = "
}