Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchFromGitHub, 5 camlidl, 6 fuse, 7 dune-configurator, 8}: 9 10buildDunePackage rec { 11 pname = "ocamlfuse"; 12 version = "2.7.1_cvs13"; 13 14 src = fetchFromGitHub { 15 owner = "astrada"; 16 repo = "ocamlfuse"; 17 rev = "v${version}"; 18 hash = "sha256-h1ExohTlr1gP2DwHKQW3PTwz6d3pust5gdeyTHJ2KBk="; 19 }; 20 21 postPatch = '' 22 substituteInPlace lib/Fuse_main.c \ 23 --replace-warn "<fuse_lowlevel.h>" "<fuse/fuse_lowlevel.h>" 24 ''; 25 26 nativeBuildInputs = [ camlidl ]; 27 buildInputs = [ dune-configurator ]; 28 propagatedBuildInputs = [ 29 camlidl 30 fuse 31 ]; 32 33 meta = { 34 homepage = "https://sourceforge.net/projects/ocamlfuse"; 35 description = "OCaml bindings for FUSE"; 36 license = lib.licenses.gpl2; 37 platforms = lib.platforms.linux; 38 maintainers = with lib.maintainers; [ bennofs ]; 39 }; 40}