mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
9acb07d716
Previous Veracrypt hoster was CodePlex which will be shut down and was set to read only on 27th of November. See the announcement (https://blogs.msdn.microsoft.com/bharry/2017/03/31/shutting-down-codeplex/) . Verycrypt's homepage has since moved to https://www.veracrypt.fr which is owned by IDRIX (https://www.afnic.fr/fr/produits-et-services/services/whois/)
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ fetchurl, stdenv, pkgconfig, yasm, fuse, wxGTK30, devicemapper, makeself,
|
|
wxGUI ? true
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "veracrypt-${version}";
|
|
version = "1.21";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/veracrypt/trunk/${version}/+download/VeraCrypt_${version}_Source.tar.bz2";
|
|
sha256 = "0n036znmwnv70wy8r2j3b55bx2z3cch5fr83vnwjvzyyp0j7swa4";
|
|
};
|
|
|
|
unpackPhase =
|
|
''
|
|
tar xjf $src
|
|
cd src
|
|
'';
|
|
|
|
nativeBuildInputs = [ makeself yasm pkgconfig ];
|
|
buildInputs = [ fuse devicemapper ]
|
|
++ optional wxGUI wxGTK30;
|
|
makeFlags = optionalString (!wxGUI) "NOGUI=1";
|
|
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
description = "Free Open-Source filesystem on-the-fly encryption";
|
|
homepage = https://www.veracrypt.fr/;
|
|
license = "VeraCrypt License";
|
|
maintainers = with maintainers; [ dsferruzza ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|