Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, autoreconfHook 5, fuse 6, git 7}: 8 9stdenv.mkDerivation { 10 pname = "aefs"; 11 version = "unstable-2015-05-06"; 12 13 src = fetchFromGitHub { 14 owner = "edolstra"; 15 repo = "aefs"; 16 rev = "e7a9bf8cfa9166668fe1514cc1afd31fc4e10e9a"; 17 hash = "sha256-a3YQWxJ7+bYhf1W1kdIykV8U1R4dcDZJ7K3NvNxbF0s="; 18 }; 19 20 # autoconf's AC_CHECK_HEADERS and AC_CHECK_LIBS fail to detect libfuse on 21 # Darwin if FUSE_USE_VERSION isn't set at configure time. 22 # 23 # NOTE: Make sure the value of FUSE_USE_VERSION specified here matches the 24 # actual version used in the source code: 25 # 26 # $ tar xf "$(nix-build -A aefs.src)" 27 # $ grep -R FUSE_USE_VERSION 28 configureFlags = lib.optional stdenv.isDarwin "CPPFLAGS=-DFUSE_USE_VERSION=26"; 29 30 nativeBuildInputs = [ autoreconfHook git ]; 31 32 buildInputs = [ fuse ]; 33 34 meta = with lib; { 35 homepage = "https://github.com/edolstra/aefs"; 36 description = "A cryptographic filesystem implemented in userspace using FUSE"; 37 maintainers = [ maintainers.eelco ]; 38 license = licenses.gpl2Plus; 39 platforms = platforms.unix; 40 broken = stdenv.isDarwin; 41 }; 42}