2021-03-27 07:03:18 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, fuse }:
|
2018-08-19 08:33:45 +00:00
|
|
|
|
2011-02-02 15:12:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 18:49:29 +00:00
|
|
|
pname = "aefs";
|
|
|
|
version = "0.4pre259-8843b7c";
|
2018-08-19 08:33:45 +00:00
|
|
|
|
2007-04-07 23:38:01 +00:00
|
|
|
src = fetchurl {
|
2021-08-12 18:49:29 +00:00
|
|
|
url = "http://tarballs.nixos.org/aefs-${version}.tar.bz2";
|
2012-05-13 00:47:58 +00:00
|
|
|
sha256 = "167hp58hmgdavg2mqn5dx1xgq24v08n8d6psf33jhbdabzx6a6zq";
|
2007-04-07 23:38:01 +00:00
|
|
|
};
|
|
|
|
|
2021-03-27 07:03:18 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/edolstra/aefs/commit/15d8df8b8d5dc1ee20d27a86c4d23163a67f3123.patch";
|
|
|
|
sha256 = "0k36hsyvf8a0ji2hpghgqff2fncj0pllxn8p0rs0aj4h7j2vp4iv";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
|
2011-02-02 15:12:15 +00:00
|
|
|
buildInputs = [ fuse ];
|
2009-01-05 14:01:42 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/edolstra/aefs";
|
2009-01-05 14:01:42 +00:00
|
|
|
description = "A cryptographic filesystem implemented in userspace using FUSE";
|
2021-03-27 07:03:18 +00:00
|
|
|
platforms = platforms.unix;
|
2018-08-19 08:33:45 +00:00
|
|
|
maintainers = [ maintainers.eelco ];
|
|
|
|
license = licenses.gpl2;
|
2009-01-05 14:01:42 +00:00
|
|
|
};
|
2007-04-07 23:38:01 +00:00
|
|
|
}
|