2021-08-27 14:47:49 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, fuse }:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2021-08-27 14:47:49 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "afuse";
|
|
|
|
version = "0.4.1";
|
2009-12-21 08:55:27 +00:00
|
|
|
|
2021-08-27 14:47:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pcarrier";
|
|
|
|
repo = "afuse";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "06i855h8a1w2jfly2gfy7vwhb2fp74yxbf3r69s28lki2kzwjar6";
|
2009-12-21 08:55:27 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ fuse ];
|
2009-12-21 08:55:27 +00:00
|
|
|
|
2021-03-25 16:38:38 +00:00
|
|
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
|
|
|
# Fix the build on macOS with macFUSE installed
|
|
|
|
substituteInPlace configure.ac --replace \
|
|
|
|
'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH' \
|
|
|
|
""
|
|
|
|
'';
|
|
|
|
|
2015-01-10 23:44:31 +00:00
|
|
|
meta = {
|
2010-07-28 11:55:54 +00:00
|
|
|
description = "Automounter in userspace";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/pcarrier/afuse";
|
2021-01-15 14:45:37 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.marcweber ];
|
2021-03-25 16:38:38 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2009-12-21 08:55:27 +00:00
|
|
|
};
|
|
|
|
}
|