3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/rewritefs/default.nix

33 lines
901 B
Nix
Raw Normal View History

2021-10-03 18:13:58 +01:00
{ lib, stdenv, fetchFromGitHub, pkg-config, fuse3, pcre }:
2016-03-03 16:37:33 +00:00
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "rewritefs";
2021-10-03 22:54:20 +01:00
version = "unstable-2021-10-03";
2016-03-03 16:37:33 +00:00
src = fetchFromGitHub {
2017-11-05 14:52:37 +00:00
owner = "sloonz";
repo = "rewritefs";
2021-10-03 18:13:58 +01:00
rev = "3a56de8b5a2d44968b8bc3885c7d661d46367306";
sha256 = "1w2rik0lhqm3wr68x51zs45gqfx79l7fi4p0sqznlfq7sz5s8xxn";
2016-03-03 16:37:33 +00:00
};
nativeBuildInputs = [ pkg-config ];
2021-10-03 18:13:58 +01:00
buildInputs = [ fuse3 pcre ];
2016-03-03 16:37:33 +00:00
prePatch = ''
2017-06-17 10:45:35 +01: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;
};
}