diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2017-09-04 09:25:15 -0700 |
---|---|---|
committer | Ryan Mulligan <ryan@ryantm.com> | 2017-09-05 20:44:17 -0700 |
commit | 8b0de80e5560b3b28e088e29b1dd8c2fb047a069 (patch) | |
tree | 4ab30049673bd216b62369a3eb604fad689f29f6 /pkgs/applications/misc/truecrypt/default.nix | |
parent | e6a83ed89c5575fee1e05af872406a865e522a38 (diff) | |
download | nixlib-8b0de80e5560b3b28e088e29b1dd8c2fb047a069.tar nixlib-8b0de80e5560b3b28e088e29b1dd8c2fb047a069.tar.gz nixlib-8b0de80e5560b3b28e088e29b1dd8c2fb047a069.tar.bz2 nixlib-8b0de80e5560b3b28e088e29b1dd8c2fb047a069.tar.lz nixlib-8b0de80e5560b3b28e088e29b1dd8c2fb047a069.tar.xz nixlib-8b0de80e5560b3b28e088e29b1dd8c2fb047a069.tar.zst nixlib-8b0de80e5560b3b28e088e29b1dd8c2fb047a069.zip |
truecrypt: fix build with gcc6 patch
The build was failing with gcc 6.4.0; using the samee gcc6 patch Arch Linux uses fixed the build. This commit also refactors out the builder.sh possibly fixing the NOGUI make flag option.
Diffstat (limited to 'pkgs/applications/misc/truecrypt/default.nix')
-rw-r--r-- | pkgs/applications/misc/truecrypt/default.nix | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/pkgs/applications/misc/truecrypt/default.nix b/pkgs/applications/misc/truecrypt/default.nix index 2b66dd41a2a8..4787516cedd0 100644 --- a/pkgs/applications/misc/truecrypt/default.nix +++ b/pkgs/applications/misc/truecrypt/default.nix @@ -46,7 +46,24 @@ library, use the 'NOGUI' parameter: stdenv.mkDerivation { name = "truecrypt-7.1a"; - builder = ./builder.sh; + + patchPhase = "patch -p0 < ${./gcc6.patch}"; + + preBuild = '' + cp $pkcs11h pkcs11.h + cp $pkcs11th pkcs11t.h + cp $pkcs11fh pkcs11f.h + ''; + + makeFlags = [ + ''PKCS11_INC="`pwd`"'' + (if wxGUI then "" else "NOGUI=1") + ]; + + installPhase = '' + install -D -t $out/bin Main/truecrypt + install -D License.txt $out/share/$name/LICENSE + ''; src = fetchurl { url = https://fossies.org/linux/misc/old/TrueCrypt-7.1a-Source.tar.gz; @@ -68,14 +85,13 @@ stdenv.mkDerivation { sha256 = "5ae6a4f32ca737e02def3bf314c9842fb89be82bf00b6f4022a97d8d565522b8"; }; - buildInputs = [ pkgconfig fuse devicemapper wxGTK nasm ]; - makeFlags = if wxGUI then "" else "NOGUI=1"; + buildInputs = [ pkgconfig fuse devicemapper wxGTK nasm ]; meta = { description = "Free Open-Source filesystem on-the-fly encryption"; homepage = http://www.truecrypt.org/; license = "TrueCrypt License Version 2.6"; - maintainers = with stdenv.lib.maintainers; [viric]; + maintainers = with stdenv.lib.maintainers; [ viric ryantm ]; platforms = with stdenv.lib.platforms; linux; }; } |