push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
diff --color --unified --recursive --text a/Core/VolumeCreator.h b/Core/VolumeCreator.h
--- a/Core/VolumeCreator.h 2021-06-20 20:54:50.725210056 +0300
+++ b/Core/VolumeCreator.h 2021-06-20 20:58:46.117742419 +0300
@@ -77,12 +77,12 @@
switch (fsType)
{
#if defined (TC_LINUX)
- case VolumeCreationOptions::FilesystemType::Ext2: return "mkfs.ext2";
- case VolumeCreationOptions::FilesystemType::Ext3: return "mkfs.ext3";
- case VolumeCreationOptions::FilesystemType::Ext4: return "mkfs.ext4";
- case VolumeCreationOptions::FilesystemType::NTFS: return "mkfs.ntfs";
- case VolumeCreationOptions::FilesystemType::exFAT: return "mkfs.exfat";
- case VolumeCreationOptions::FilesystemType::Btrfs: return "mkfs.btrfs";
+ case VolumeCreationOptions::FilesystemType::Ext2: return "@ext2@";
+ case VolumeCreationOptions::FilesystemType::Ext3: return "@ext3@";
+ case VolumeCreationOptions::FilesystemType::Ext4: return "@ext4@";
+ case VolumeCreationOptions::FilesystemType::NTFS: return "@ntfs@";
+ case VolumeCreationOptions::FilesystemType::exFAT: return "@exfat@";
+ case VolumeCreationOptions::FilesystemType::Btrfs: return "@btrfs@";
#elif defined (TC_MACOSX)
case VolumeCreationOptions::FilesystemType::MacOsExt: return "newfs_hfs";
case VolumeCreationOptions::FilesystemType::exFAT: return "newfs_exfat";

View File

@@ -0,0 +1,13 @@
diff --git a/Platform/Unix/Process.cpp b/Platform/Unix/Process.cpp
index 395d4bc..18601ad 100644
--- a/Platform/Unix/Process.cpp
+++ b/Platform/Unix/Process.cpp
@@ -52,7 +52,7 @@ namespace VeraCrypt
#elif TC_OPENBSD
const char* defaultDirs[] = {"/sbin", "/bin", "/usr/sbin", "/usr/bin", "/usr/X11R6/bin", "/usr/local/sbin", "/usr/local/bin"};
#else
- const char* defaultDirs[] = {"/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin"};
+ const char* defaultDirs[] = {"/run/wrappers/bin", "/run/current-system/sw/bin", "/nix/var/nix/profiles/default/bin", "/etc/profiles/per-user/$USER", "/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin"};
#endif
const size_t defaultDirCount = sizeof(defaultDirs) / sizeof(defaultDirs[0]);

View File

@@ -0,0 +1,83 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
makeself,
yasm,
fuse,
wxGTK32,
lvm2,
replaceVars,
e2fsprogs,
exfat,
ntfs3g,
btrfs-progs,
pcsclite,
wrapGAppsHook3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "veracrypt";
version = "1.26.24";
src = fetchurl {
url = "https://launchpad.net/veracrypt/trunk/${finalAttrs.version}/+download/VeraCrypt_${finalAttrs.version}_Source.tar.bz2";
hash = "sha256-f1wgr0KTd6tW97UsqGiTa5kj14T0YG2piGw2KXiQPng=";
};
patches = [
(replaceVars ./fix-paths.patch {
ext2 = "${e2fsprogs}/bin/mkfs.ext2";
ext3 = "${e2fsprogs}/bin/mkfs.ext3";
ext4 = "${e2fsprogs}/bin/mkfs.ext4";
exfat = "${exfat}/bin/mkfs.exfat";
ntfs = "${ntfs3g}/bin/mkfs.ntfs";
btrfs = "${btrfs-progs}/bin/mkfs.btrfs";
})
# https://github.com/veracrypt/VeraCrypt/commit/2cca2e1dafa405addc3af8724baf8563f352ac1c
./nix-system-paths.patch
];
sourceRoot = "src";
nativeBuildInputs = [
makeself
pkg-config
yasm
wrapGAppsHook3
];
buildInputs = [
fuse
lvm2
wxGTK32
pcsclite
];
enableParallelBuilding = true;
installPhase = ''
install -Dm 755 Main/veracrypt "$out/bin/veracrypt"
install -Dm 444 Resources/Icons/VeraCrypt-256x256.xpm "$out/share/pixmaps/veracrypt.xpm"
install -Dm 444 License.txt -t "$out/share/doc/veracrypt/"
install -d $out/share/applications
substitute Setup/Linux/veracrypt.desktop $out/share/applications/veracrypt.desktop \
--replace-fail "Exec=/usr/bin/veracrypt" "Exec=$out/bin/veracrypt" \
--replace-fail "Icon=veracrypt" "Icon=veracrypt.xpm"
'';
meta = {
description = "Free Open-Source filesystem on-the-fly encryption";
homepage = "https://www.veracrypt.fr/";
license = with lib.licenses; [
asl20 # and
unfree # TrueCrypt License version 3.0
];
maintainers = with lib.maintainers; [
dsferruzza
ryand56
];
platforms = lib.platforms.linux;
};
})