nixpkgs/pkgs/os-specific/linux/afuse/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
861 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, fuse }:
stdenv.mkDerivation rec {
pname = "afuse";
2023-06-11 10:49:26 +00:00
version = "0.5.0";
src = fetchFromGitHub {
owner = "pcarrier";
repo = "afuse";
rev = "v${version}";
2023-06-11 10:49:26 +00:00
sha256 = "sha256-KpysJRvDx+12BSl9pIGRqbJAM4W1NbzxMgDycGCr2RM=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ fuse ];
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' \
""
'';
meta = {
description = "Automounter in userspace";
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;
};
}