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

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

33 lines
901 B
Nix
Raw Normal View History

2021-10-03 17:13:58 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, fuse3, pcre }:
2016-03-03 16:37:33 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "rewritefs";
2021-10-03 21:54:20 +00: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 17:13:58 +00:00
rev = "3a56de8b5a2d44968b8bc3885c7d661d46367306";
sha256 = "1w2rik0lhqm3wr68x51zs45gqfx79l7fi4p0sqznlfq7sz5s8xxn";
2016-03-03 16:37:33 +00:00
};
nativeBuildInputs = [ pkg-config ];
2021-10-03 17:13:58 +00:00
buildInputs = [ fuse3 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;
};
}