4a3881ed61
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/veracrypt/versions. These checks were done: - built on NixOS - ran `/nix/store/qx2d8v3a4gx3rp8wpcmw0av3vn0dchkw-veracrypt-1.22/bin/veracrypt -h` got 0 exit code - ran `/nix/store/qx2d8v3a4gx3rp8wpcmw0av3vn0dchkw-veracrypt-1.22/bin/veracrypt --help` got 0 exit code - ran `/nix/store/qx2d8v3a4gx3rp8wpcmw0av3vn0dchkw-veracrypt-1.22/bin/veracrypt --version` and found version 1.22 - found 1.22 with grep in /nix/store/qx2d8v3a4gx3rp8wpcmw0av3vn0dchkw-veracrypt-1.22 - directory tree listing: https://gist.github.com/8690e0df710362cb464457218630b6ee
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.22";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/veracrypt/trunk/${version}/+download/VeraCrypt_${version}_Source.tar.bz2";
|
|
sha256 = "0w5qyxnx03vn93ach1kb995w2mdg43s82gf1isbk206sxp00qk4y";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|