Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
954 B
Nix
45 lines
954 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
autoreconfHook,
|
|
fuse,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "afuse";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pcarrier";
|
|
repo = "afuse";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-KpysJRvDx+12BSl9pIGRqbJAM4W1NbzxMgDycGCr2RM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [ fuse ];
|
|
|
|
patches = [ ./001-darwin-fdatasync.patch ];
|
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
# Fix the build on macOS with macFUSE installed
|
|
substituteInPlace configure.ac --replace-fail \
|
|
'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;
|
|
};
|
|
}
|