nixpkgs/pkgs/tools/filesystems/9pfs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1009 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fuse }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "9pfs";
version = "unstable-2015-09-18";
src = fetchFromGitHub {
owner = "mischief";
repo = "9pfs";
rev = "7f4ca4cd750d650c1215b92ac3cc2a28041960e4";
sha256 = "007s2idsn6bspmfxv1qabj39ggkgvn6gwdbhczwn04lb4c6gh3xc";
};
2021-03-30 13:39:53 +00:00
# Upstream development has stopped and is no longer accepting patches
# https://github.com/mischief/9pfs/pull/3
patches = [ ./fix-darwin-build.patch ];
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 = {
homepage = "https://github.com/mischief/9pfs";
description = "FUSE-based client of the 9P network filesystem protocol";
maintainers = [ lib.maintainers.eelco ];
2021-03-30 13:39:53 +00:00
platforms = lib.platforms.unix;
2018-08-19 08:25:22 +00:00
license = with lib.licenses; [ lpl-102 bsd2 ];
};
}