Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 fuse,
7 gitUpdater,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "9pfs";
12 version = "0.4";
13
14 src = fetchFromGitHub {
15 owner = "ftrvxmtrx";
16 repo = "9pfs";
17 rev = version;
18 sha256 = "sha256-nlJ4Zh13T78r0Dn3Ky/XLhipeMbMFbn0qGCJnUCBd3Y=";
19 };
20
21 postPatch = ''
22 substituteInPlace Makefile --replace "pkg-config" "$PKG_CONFIG"
23 '';
24
25 makeFlags = [
26 "BIN=$(out)/bin"
27 "MAN=$(out)/share/man/man1"
28 ];
29 nativeBuildInputs = [ pkg-config ];
30 buildInputs = [ fuse ];
31 enableParallelBuilding = true;
32
33 passthru.updateScript = gitUpdater { };
34
35 meta = {
36 homepage = "https://github.com/ftrvxmtrx/9pfs";
37 description = "FUSE-based client of the 9P network filesystem protocol";
38 mainProgram = "9pfs";
39 maintainers = [ ];
40 platforms = lib.platforms.unix;
41 license = with lib.licenses; [
42 lpl-102
43 bsd2
44 ];
45 };
46}