depot/third_party/nixpkgs/pkgs/os-specific/linux/afuse/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

31 lines
878 B
Nix

{ 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;
};
}