blob: 33d950b76cd66810b443e7178df2d1ec3e0541ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, fuse }:
stdenv.mkDerivation rec {
pname = "afuse";
version = "0.5.0";
src = fetchFromGitHub {
owner = "pcarrier";
repo = "afuse";
rev = "v${version}";
sha256 = "sha256-KpysJRvDx+12BSl9pIGRqbJAM4W1NbzxMgDycGCr2RM=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ fuse ];
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
# Fix the build on macOS with macFUSE installed
substituteInPlace configure.ac --replace \
'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH' \
""
'';
meta = {
description = "Automounter in userspace";
homepage = "https://github.com/pcarrier/afuse";
license = lib.licenses.gpl2Only;
maintainers = [ lib.maintainers.marcweber ];
platforms = lib.platforms.unix;
};
}
|