84cb9d505d
GitOrigin-RevId: 51bcdc4cdaac48535dabf0ad4642a66774c609ed
31 lines
865 B
Nix
31 lines
865 B
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, fuse }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "afuse-0.4.1";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pcarrier";
|
|
repo = "afuse";
|
|
rev = "v${version}";
|
|
hash = "sha256-JivJ/xRxUiR0Mnm41T0514kF+T7ePeGpk4IHhWApKBo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ fuse ];
|
|
|
|
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' \
|
|
""
|
|
'';
|
|
|
|
meta = {
|
|
description = "Automounter in userspace";
|
|
homepage = "https://github.com/pcarrier/afuse";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = [ lib.maintainers.marcweber ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|