Skip to content

Commit

Permalink
cryfs: 0.11.4 -> 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
momeemt committed Jan 11, 2025
1 parent d9e9853 commit 346cbdf
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions pkgs/by-name/cr/cryfs/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,20 @@
llvmPackages,
}:

stdenv.mkDerivation rec {
let
version = "1.0.1";
# macFUSE needs to be installed for the test to succeed on Darwin
doCheck = !stdenv.hostPlatform.isDarwin;
in
stdenv.mkDerivation {
pname = "cryfs";
version = "0.11.4";
inherit version;

src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
hash = "sha256-OkJhLg+YzS3kDhlpUQe9A+OiVBPG/iKs6OU7aKFJ5wY=";
owner = "cryfs";
repo = "cryfs";
tag = version;
hash = "sha256-t6/W2zKO6qbCRc/knBgKIyE2WNahAX83VhwsLO5F52g=";
};

postPatch = ''
Expand Down Expand Up @@ -64,17 +69,14 @@ stdenv.mkDerivation rec {
spdlog
] ++ lib.optional stdenv.cc.isClang llvmPackages.openmp;

#nativeCheckInputs = [ gtest ];

cmakeFlags = [
"-DDEPENDENCY_CONFIG='../cmake-utils/DependenciesFromLocalSystem.cmake'"
"-DCRYFS_UPDATE_CHECKS:BOOL=FALSE"
"-DBoost_USE_STATIC_LIBS:BOOL=FALSE" # this option is case sensitive
"-DBUILD_TESTING:BOOL=${if doCheck then "TRUE" else "FALSE"}"
]; # ++ lib.optional doCheck "-DCMAKE_PREFIX_PATH=${gtest.dev}/lib/cmake";

# macFUSE needs to be installed for the test to succeed on Darwin
doCheck = !stdenv.hostPlatform.isDarwin;
inherit doCheck;

checkPhase = ''
runHook preCheck
Expand All @@ -90,16 +92,16 @@ stdenv.mkDerivation rec {
runHook postCheck
'';

meta = with lib; {
meta = {
description = "Cryptographic filesystem for the cloud";
homepage = "https://www.cryfs.org/";
changelog = "https://github.com/cryfs/cryfs/raw/${version}/ChangeLog.txt";
license = licenses.lgpl3Only;
maintainers = with maintainers; [
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [
peterhoeg
c0bw3b
sigmasquadron
];
platforms = platforms.unix;
platforms = lib.platforms.unix;
};
}

0 comments on commit 346cbdf

Please sign in to comment.