veracrypt: init at 1.19

This commit is contained in:
David Sferruzza 2017-04-02 16:38:08 +02:00 committed by Joachim Fasting
parent cc4fa379cb
commit 2ae74f9f4f
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ fetchurl, stdenv, pkgconfig, nasm, fuse, wxGTK30, devicemapper, makeself,
wxGUI ? true
}:
stdenv.mkDerivation rec {
name = "veracrypt-${version}";
version = "1.19";
src = fetchurl {
url = "https://launchpad.net/veracrypt/trunk/${version}/+download/VeraCrypt_${version}_Source.tar.gz";
sha256 = "111xs1zmic82lpn5spn0ca33q0g4za04a2k4cvjwdb7k3vcicq6v";
};
# The source archive can't be extracted with "tar xfz"; I don't know why
# Using "gunzip" before "tar xf" works though
unpackPhase =
''
gunzip -c $src > src.tar
tar xf src.tar
cd Vera*/src
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ fuse devicemapper wxGTK30 nasm makeself ];
makeFlags = if wxGUI then "" else "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/\/usr\/bin\/veracrypt/veracrypt/' Setup/Linux/veracrypt.desktop > $out/share/applications/veracrypt.desktop
'';
meta = {
description = "Free Open-Source filesystem on-the-fly encryption";
homepage = https://veracrypt.codeplex.com/;
license = "VeraCrypt License";
maintainers = with stdenv.lib.maintainers; [dsferruzza];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -4532,6 +4532,10 @@ with pkgs;
python = python27;
};
veracrypt = callPackage ../applications/misc/veracrypt {
wxGUI = true;
};
vlan = callPackage ../tools/networking/vlan { };
vmtouch = callPackage ../tools/misc/vmtouch { };