2015-12-16 20:30:45 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fuse }:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2018-05-24 05:05:53 +02:00
|
|
|
name = "9pfs-20150918";
|
2015-12-16 20:30:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-10-31 23:11:23 +01:00
|
|
|
owner = "mischief";
|
2015-12-16 20:30:45 +01:00
|
|
|
repo = "9pfs";
|
|
|
|
rev = "7f4ca4cd750d650c1215b92ac3cc2a28041960e4";
|
|
|
|
sha256 = "007s2idsn6bspmfxv1qabj39ggkgvn6gwdbhczwn04lb4c6gh3xc";
|
|
|
|
};
|
|
|
|
|
2021-03-30 15:39:53 +02:00
|
|
|
# Upstream development has stopped and is no longer accepting patches
|
|
|
|
# https://github.com/mischief/9pfs/pull/3
|
|
|
|
patches = [ ./fix-darwin-build.patch ];
|
|
|
|
|
2015-12-16 20:30:45 +01:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
substituteInPlace Makefile --replace '-g bin' ""
|
|
|
|
installFlagsArray+=(BIN=$out/bin MAN=$out/share/man/man1)
|
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ fuse ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mischief/9pfs";
|
2015-12-16 20:30:45 +01:00
|
|
|
description = "FUSE-based client of the 9P network filesystem protocol";
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
2021-03-30 15:39:53 +02:00
|
|
|
platforms = lib.platforms.unix;
|
2018-08-19 10:25:22 +02:00
|
|
|
license = with lib.licenses; [ lpl-102 bsd2 ];
|
2015-12-16 20:30:45 +01:00
|
|
|
};
|
|
|
|
}
|