2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, fuse
|
|
|
|
, git
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "aefs";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "unstable-2015-05-06";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "edolstra";
|
|
|
|
repo = "aefs";
|
|
|
|
rev = "e7a9bf8cfa9166668fe1514cc1afd31fc4e10e9a";
|
|
|
|
hash = "sha256-a3YQWxJ7+bYhf1W1kdIykV8U1R4dcDZJ7K3NvNxbF0s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
# autoconf's AC_CHECK_HEADERS and AC_CHECK_LIBS fail to detect libfuse on
|
|
|
|
# Darwin if FUSE_USE_VERSION isn't set at configure time.
|
|
|
|
#
|
|
|
|
# NOTE: Make sure the value of FUSE_USE_VERSION specified here matches the
|
|
|
|
# actual version used in the source code:
|
|
|
|
#
|
|
|
|
# $ tar xf "$(nix-build -A aefs.src)"
|
|
|
|
# $ grep -R FUSE_USE_VERSION
|
|
|
|
configureFlags = lib.optional stdenv.isDarwin "CPPFLAGS=-DFUSE_USE_VERSION=26";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook git ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ fuse ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/edolstra/aefs";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cryptographic filesystem implemented in userspace using FUSE";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.eelco ];
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|