20 stdenv.mkDerivation (finalAttrs: {
25 url = "https://launchpad.net/veracrypt/trunk/${finalAttrs.version}/+download/VeraCrypt_${finalAttrs.version}_Source.tar.bz2";
26 hash = "sha256-upcCUDDiG5sjMbfrCJcBFjwyr0t+BFNfM1uvjXSnSRY=";
31 src = ./fix-paths.patch;
32 ext2 = "${e2fsprogs}/bin/mkfs.ext2";
33 ext3 = "${e2fsprogs}/bin/mkfs.ext3";
34 ext4 = "${e2fsprogs}/bin/mkfs.ext4";
35 exfat = "${exfat}/bin/mkfs.exfat";
36 ntfs = "${ntfs3g}/bin/mkfs.ntfs";
37 btrfs = "${btrfs-progs}/bin/mkfs.btrfs";
56 enableParallelBuilding = true;
59 install -Dm 755 Main/veracrypt "$out/bin/veracrypt"
60 install -Dm 444 Resources/Icons/VeraCrypt-256x256.xpm "$out/share/pixmaps/veracrypt.xpm"
61 install -Dm 444 License.txt -t "$out/share/doc/veracrypt/"
62 install -d $out/share/applications
63 substitute Setup/Linux/veracrypt.desktop $out/share/applications/veracrypt.desktop \
64 --replace-fail "Exec=/usr/bin/veracrypt" "Exec=$out/bin/veracrypt" \
65 --replace-fail "Icon=veracrypt" "Icon=veracrypt.xpm"
69 description = "Free Open-Source filesystem on-the-fly encryption";
70 homepage = "https://www.veracrypt.fr/";
71 license = with lib.licenses; [
73 unfree # TrueCrypt License version 3.0
75 maintainers = with lib.maintainers; [
79 platforms = lib.platforms.linux;