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