2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, fuse, pcre }:
|
2016-03-03 17:37:33 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "rewritefs";
|
2017-11-05 15:52:37 +01:00
|
|
|
version = "2017-08-14";
|
2016-03-03 17:37:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-11-05 15:52:37 +01:00
|
|
|
owner = "sloonz";
|
|
|
|
repo = "rewritefs";
|
|
|
|
rev = "33fb844d8e8ff441a3fc80d2715e8c64f8563d81";
|
2016-07-27 03:51:08 +02:00
|
|
|
sha256 = "15bcxprkxf0xqxljsqhb0jpi7p1vwqcb00sjs7nzrj7vh2p7mqla";
|
2016-03-03 17:37:33 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 23:26:13 +02:00
|
|
|
buildInputs = [ fuse pcre ];
|
2016-03-03 17:37:33 +01:00
|
|
|
|
2017-06-16 14:22:20 +02:00
|
|
|
prePatch = ''
|
2017-06-17 11:45:35 +02:00
|
|
|
# do not set sticky bit in nix store
|
2017-06-16 14:22:20 +02:00
|
|
|
substituteInPlace Makefile --replace 6755 0755
|
|
|
|
'';
|
|
|
|
|
2016-03-03 17:37:33 +01:00
|
|
|
preConfigure = "substituteInPlace Makefile --replace /usr/local $out";
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-03-03 17:37:33 +01:00
|
|
|
description = ''A FUSE filesystem intended to be used
|
|
|
|
like Apache mod_rewrite'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/sloonz/rewritefs";
|
2016-03-03 17:37:33 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|