2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2016-05-12 22:46:23 +02:00
|
|
|
, cmake
|
2016-05-01 20:58:14 +02:00
|
|
|
, fuse }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "securefs";
|
2020-09-03 16:10:23 +02:00
|
|
|
version = "0.11.1";
|
2016-05-01 20:58:14 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-09-03 16:10:23 +02:00
|
|
|
sha256 = "1sxfgqgy63ml7vg7zj3glvra4wj2qmfv9jzmpm1jqy8hq7qlqlsx";
|
2016-05-01 20:58:14 +02:00
|
|
|
rev = version;
|
|
|
|
repo = "securefs";
|
|
|
|
owner = "netheril96";
|
2020-09-03 16:10:23 +02:00
|
|
|
fetchSubmodules = true;
|
2016-05-01 20:58:14 +02:00
|
|
|
};
|
|
|
|
|
2021-03-25 17:37:15 +01:00
|
|
|
patches = [
|
|
|
|
# Make it build with macFUSE
|
|
|
|
# Backported from https://github.com/netheril96/securefs/pull/114
|
|
|
|
./add-macfuse-support.patch
|
|
|
|
];
|
|
|
|
|
2022-01-28 21:17:27 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/TEST_SOURCES/d' CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
2016-05-12 22:46:23 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2016-05-01 20:58:14 +02:00
|
|
|
buildInputs = [ fuse ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-05-01 20:58:14 +02:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Transparent encryption filesystem";
|
|
|
|
longDescription = ''
|
|
|
|
Securefs is a filesystem in userspace (FUSE) that transparently encrypts
|
|
|
|
and authenticates data stored. It is particularly designed to secure
|
|
|
|
data stored in the cloud.
|
|
|
|
Securefs mounts a regular directory onto a mount point. The mount point
|
|
|
|
appears as a regular filesystem, where one can read/write/create files,
|
|
|
|
directories and symbolic links. The underlying directory will be
|
|
|
|
automatically updated to contain the encrypted and authenticated
|
|
|
|
contents.
|
|
|
|
'';
|
|
|
|
license = with licenses; [ bsd2 mit ];
|
2021-03-25 17:37:15 +01:00
|
|
|
platforms = platforms.unix;
|
2016-05-01 20:58:14 +02:00
|
|
|
};
|
|
|
|
}
|