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 19:13:58 +02:00
{ lib, stdenv, fetchFromGitHub, pkg-config, fuse3, pcre }:
2016-03-03 17:37:33 +01:00
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
pname = "rewritefs";
2021-10-03 23:54:20 +02:00
version = "unstable-2021-10-03";
2016-03-03 17:37:33 +01:00
src = fetchFromGitHub {
2017-11-05 15:52:37 +01:00
owner = "sloonz";
repo = "rewritefs";
2021-10-03 19:13:58 +02:00
rev = "3a56de8b5a2d44968b8bc3885c7d661d46367306";
sha256 = "1w2rik0lhqm3wr68x51zs45gqfx79l7fi4p0sqznlfq7sz5s8xxn";
2016-03-03 17:37:33 +01:00
};
nativeBuildInputs = [ pkg-config ];
2021-10-03 19:13:58 +02:00
buildInputs = [ fuse3 pcre ];
2016-03-03 17:37:33 +01:00
prePatch = ''
2017-06-17 11:45:35 +02:00
# do not set sticky bit in nix store
substituteInPlace Makefile --replace 6755 0755
'';
2016-03-03 17:37:33 +01:00
preConfigure = "substituteInPlace Makefile --replace /usr/local $out";
meta = with lib; {
2016-03-03 17:37:33 +01:00
description = ''A FUSE filesystem intended to be used
like Apache mod_rewrite'';
homepage = "https://github.com/sloonz/rewritefs";
2016-03-03 17:37:33 +01:00
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.linux;
};
}