at 23.11-beta 31 lines 861 B view raw
1{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, fuse }: 2 3stdenv.mkDerivation rec { 4 pname = "afuse"; 5 version = "0.5.0"; 6 7 src = fetchFromGitHub { 8 owner = "pcarrier"; 9 repo = "afuse"; 10 rev = "v${version}"; 11 sha256 = "sha256-KpysJRvDx+12BSl9pIGRqbJAM4W1NbzxMgDycGCr2RM="; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook pkg-config ]; 15 buildInputs = [ fuse ]; 16 17 postPatch = lib.optionalString stdenv.isDarwin '' 18 # Fix the build on macOS with macFUSE installed 19 substituteInPlace configure.ac --replace \ 20 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH' \ 21 "" 22 ''; 23 24 meta = { 25 description = "Automounter in userspace"; 26 homepage = "https://github.com/pcarrier/afuse"; 27 license = lib.licenses.gpl2; 28 maintainers = [ lib.maintainers.marcweber ]; 29 platforms = lib.platforms.unix; 30 }; 31}