2018-07-17 21:11:16 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, yasm, fuse, wxGTK30, lvm2, makeself,
|
2017-04-02 15:38:08 +01:00
|
|
|
wxGUI ? true
|
|
|
|
}:
|
|
|
|
|
2017-04-02 15:41:11 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-04-02 15:38:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "veracrypt-${version}";
|
2018-04-02 14:31:01 +01:00
|
|
|
version = "1.22";
|
2017-04-02 15:38:08 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-07-19 10:28:32 +01:00
|
|
|
url = "https://launchpad.net/veracrypt/trunk/${version}/+download/VeraCrypt_${version}_Source.tar.bz2";
|
2018-04-02 14:31:01 +01:00
|
|
|
sha256 = "0w5qyxnx03vn93ach1kb995w2mdg43s82gf1isbk206sxp00qk4y";
|
2017-04-02 15:38:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase =
|
|
|
|
''
|
2017-07-19 10:28:32 +01:00
|
|
|
tar xjf $src
|
|
|
|
cd src
|
2017-04-02 15:38:08 +01:00
|
|
|
'';
|
|
|
|
|
2017-07-19 10:28:32 +01:00
|
|
|
nativeBuildInputs = [ makeself yasm pkgconfig ];
|
2018-07-17 21:11:16 +01:00
|
|
|
buildInputs = [ fuse lvm2 ]
|
2017-04-02 15:41:11 +01:00
|
|
|
++ optional wxGUI wxGTK30;
|
|
|
|
makeFlags = optionalString (!wxGUI) "NOGUI=1";
|
2017-04-02 15:38:08 +01:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp Main/veracrypt $out/bin
|
|
|
|
mkdir -p $out/share/$name
|
|
|
|
cp License.txt $out/share/$name/LICENSE
|
|
|
|
mkdir -p $out/share/applications
|
2017-04-02 15:41:11 +01:00
|
|
|
sed "s,Exec=.*,Exec=$out/bin/veracrypt," Setup/Linux/veracrypt.desktop > $out/share/applications/veracrypt.desktop
|
2017-04-02 15:38:08 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Free Open-Source filesystem on-the-fly encryption";
|
2017-12-29 08:20:53 +00:00
|
|
|
homepage = https://www.veracrypt.fr/;
|
2017-04-02 15:38:08 +01:00
|
|
|
license = "VeraCrypt License";
|
2017-04-02 15:41:11 +01:00
|
|
|
maintainers = with maintainers; [ dsferruzza ];
|
|
|
|
platforms = platforms.linux;
|
2017-04-02 15:38:08 +01:00
|
|
|
};
|
|
|
|
}
|