Unverified Commit a968fa03 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

veracrypt: 1.26.7 -> 1.26.15 (#344488)

parents ac735ab3 3f03d48c
Loading
Loading
Loading
Loading
+81 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchurl
, pkg-config
, makeself
, yasm
, fuse
, wxGTK
, lvm2
, substituteAll
, e2fsprogs
, exfat
, ntfs3g
, btrfs-progs
, pcsclite
, wrapGAppsHook3
{
  lib,
  stdenv,
  fetchurl,
  pkg-config,
  makeself,
  yasm,
  fuse,
  wxGTK32,
  lvm2,
  substituteAll,
  e2fsprogs,
  exfat,
  ntfs3g,
  btrfs-progs,
  pcsclite,
  wrapGAppsHook3,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "veracrypt";
  version = "1.26.7";
  version = "1.26.15";

  src = fetchurl {
    url = "https://launchpad.net/${pname}/trunk/${lib.toLower version}/+download/VeraCrypt_${version}_Source.tar.bz2";
    sha256 = "sha256-920nsYJBTg1P2ba1n76iiyXbb6afK7z/ouwmmxqGX2U=";
    url = "https://launchpad.net/veracrypt/trunk/${finalAttrs.version}/+download/VeraCrypt_${finalAttrs.version}_Source.tar.bz2";
    hash = "sha256-upcCUDDiG5sjMbfrCJcBFjwyr0t+BFNfM1uvjXSnSRY=";
  };

  patches = [
@@ -39,26 +40,42 @@ stdenv.mkDerivation rec {

  sourceRoot = "src";

  nativeBuildInputs = [ makeself pkg-config yasm wrapGAppsHook3 ];
  buildInputs = [ fuse lvm2 wxGTK pcsclite ];
  nativeBuildInputs = [
    makeself
    pkg-config
    yasm
    wrapGAppsHook3
  ];
  buildInputs = [
    fuse
    lvm2
    wxGTK32
    pcsclite
  ];

  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 -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/${pname}.desktop $out/share/applications/${pname}.desktop \
      --replace "Exec=/usr/bin/veracrypt" "Exec=$out/bin/veracrypt" \
      --replace "Icon=veracrypt" "Icon=veracrypt.xpm"
    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 = with lib; {
  meta = {
    description = "Free Open-Source filesystem on-the-fly encryption";
    homepage = "https://www.veracrypt.fr/";
    license = with licenses; [ asl20 /* and */ unfree /* TrueCrypt License version 3.0 */ ];
    maintainers = with maintainers; [ dsferruzza ];
    platforms = platforms.linux;
    license = with lib.licenses; [
      asl20 # and
      unfree # TrueCrypt License version 3.0
    ];
    maintainers = with lib.maintainers; [
      dsferruzza
      ryand56
    ];
    platforms = lib.platforms.linux;
  };
}
})
+0 −4
Original line number Diff line number Diff line
@@ -13846,10 +13846,6 @@ with pkgs;
  hitch = callPackage ../servers/hitch { };
  veracrypt = callPackage ../applications/misc/veracrypt {
    wxGTK = wxGTK32;
  };
  veryfasttree = callPackage ../applications/science/biology/veryfasttree { };
  viceroy = callPackage ../development/tools/viceroy {