nixpkgs/pkgs/os-specific/linux/rewritefs/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2021-08-09 07:26:15 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, fuse3, fuse, pcre }:
2016-03-03 16:37:33 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "rewritefs";
2021-08-09 07:26:15 +00:00
version = "2020-02-21";
2016-03-03 16:37:33 +00:00
src = fetchFromGitHub {
2017-11-05 14:52:37 +00:00
owner = "sloonz";
repo = "rewritefs";
2021-08-09 07:26:15 +00:00
rev = "bc241c7f81e626766786b56cf71d32c1a6ad510c";
sha256 = "0zj2560hcbg5az0r8apnv0zz9b22i9r9w6rlih0rbrn673xp7q2i";
2016-03-03 16:37:33 +00:00
};
nativeBuildInputs = [ pkg-config ];
2021-08-09 07:26:15 +00:00
# Note: fuse is needed solely because (unlike fuse3) it exports ulockmgr.h.
# This library was removed in fuse 3 to be distributed separately, but
# apparently it's not.
buildInputs = [ fuse3 fuse pcre ];
2016-03-03 16:37:33 +00:00
prePatch = ''
2017-06-17 09:45:35 +00:00
# do not set sticky bit in nix store
substituteInPlace Makefile --replace 6755 0755
'';
2016-03-03 16:37:33 +00:00
preConfigure = "substituteInPlace Makefile --replace /usr/local $out";
meta = with lib; {
2016-03-03 16:37:33 +00:00
description = ''A FUSE filesystem intended to be used
like Apache mod_rewrite'';
homepage = "https://github.com/sloonz/rewritefs";
2016-03-03 16:37:33 +00:00
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.linux;
};
}