nixpkgs/pkgs/applications/misc/veracrypt/default.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

2017-07-19 11:28:32 +02:00
{ fetchurl, stdenv, pkgconfig, yasm, fuse, wxGTK30, devicemapper, makeself,
2017-04-02 16:38:08 +02:00
wxGUI ? true
}:
with stdenv.lib;
2017-04-02 16:38:08 +02:00
stdenv.mkDerivation rec {
name = "veracrypt-${version}";
2017-07-19 11:28:32 +02:00
version = "1.21";
2017-04-02 16:38:08 +02:00
src = fetchurl {
2017-07-19 11:28:32 +02:00
url = "https://launchpad.net/veracrypt/trunk/${version}/+download/VeraCrypt_${version}_Source.tar.bz2";
sha256 = "0n036znmwnv70wy8r2j3b55bx2z3cch5fr83vnwjvzyyp0j7swa4";
2017-04-02 16:38:08 +02:00
};
unpackPhase =
''
2017-07-19 11:28:32 +02:00
tar xjf $src
cd src
2017-04-02 16:38:08 +02:00
'';
2017-07-19 11:28:32 +02:00
nativeBuildInputs = [ makeself yasm pkgconfig ];
buildInputs = [ fuse devicemapper ]
++ optional wxGUI wxGTK30;
makeFlags = optionalString (!wxGUI) "NOGUI=1";
2017-04-02 16:38:08 +02: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
sed "s,Exec=.*,Exec=$out/bin/veracrypt," Setup/Linux/veracrypt.desktop > $out/share/applications/veracrypt.desktop
2017-04-02 16:38:08 +02:00
'';
meta = {
description = "Free Open-Source filesystem on-the-fly encryption";
homepage = https://veracrypt.codeplex.com/;
license = "VeraCrypt License";
maintainers = with maintainers; [ dsferruzza ];
platforms = platforms.linux;
2017-04-02 16:38:08 +02:00
};
}