2019-08-31 13:45:17 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, makeself, yasm, fuse, unzip, wxGTK, lvm2 }:
|
2017-04-02 15:38:08 +01:00
|
|
|
|
2017-04-02 15:41:11 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-04-02 15:38:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-10-24 19:57:03 +01:00
|
|
|
pname = "veracrypt";
|
|
|
|
version = "1.23";
|
2019-08-31 13:45:17 +01:00
|
|
|
minorVersion = "-Hotfix-2";
|
2017-04-02 15:38:08 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-31 13:45:17 +01:00
|
|
|
url = "https://launchpad.net/${pname}/trunk/${version}/+download/VeraCrypt_${version}${minorVersion}_Source.zip";
|
|
|
|
sha256 = "229de81b2478cfa5fa73e74e60798a298cd616e9852b9f47b484c80bc2a2c259";
|
2017-04-02 15:38:08 +01:00
|
|
|
};
|
|
|
|
|
2018-10-24 19:57:03 +01:00
|
|
|
sourceRoot = "src";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeself pkgconfig yasm ];
|
2019-08-31 13:45:17 +01:00
|
|
|
buildInputs = [ fuse lvm2 unzip wxGTK ];
|
2018-10-24 19:57:03 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm 755 Main/${pname} "$out/bin/${pname}"
|
|
|
|
install -Dm 444 Resources/Icons/VeraCrypt-256x256.xpm "$out/share/pixmaps/${pname}.xpm"
|
|
|
|
install -Dm 444 License.txt -t "$out/share/doc/${pname}/"
|
|
|
|
install -d $out/share/applications
|
|
|
|
substitute Setup/Linux/${pname}.desktop $out/share/applications/${pname}.desktop \
|
|
|
|
--replace "Exec=/usr/bin/veracrypt" "Exec=$out/bin/veracrypt" \
|
|
|
|
--replace "Icon=veracrypt" "Icon=veracrypt.xpm"
|
|
|
|
'';
|
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/;
|
2018-10-24 19:57:03 +01:00
|
|
|
license = [ licenses.asl20 /* or */ "TrueCrypt License version 3.0" ];
|
2017-04-02 15:41:11 +01:00
|
|
|
maintainers = with maintainers; [ dsferruzza ];
|
|
|
|
platforms = platforms.linux;
|
2017-04-02 15:38:08 +01:00
|
|
|
};
|
|
|
|
}
|