Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 25 lines 755 B view raw
1{ lib, stdenv, fetchurl, fuse, fuse3, pkg-config }: 2 3stdenv.mkDerivation rec { 4 version = "1.17.3"; 5 pname = "bindfs"; 6 7 src = fetchurl { 8 url = "https://bindfs.org/downloads/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-wWh2CRVywjJCwW6Hxb5+NRL0Q6rmNzKNjAEcBx6TAus="; 10 }; 11 12 nativeBuildInputs = [ pkg-config ]; 13 buildInputs = if stdenv.isDarwin then [ fuse ] else [ fuse3 ]; 14 postFixup = '' 15 ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs 16 ''; 17 18 meta = { 19 description = "A FUSE filesystem for mounting a directory to another location"; 20 homepage = "https://bindfs.org"; 21 license = lib.licenses.gpl2Only; 22 maintainers = with lib.maintainers; [ lovek323 lovesegfault ]; 23 platforms = lib.platforms.unix; 24 }; 25}