1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/os-specific/linux/rewritefs/default.nix

33 lines
900 B
Nix
Raw Normal View History

2016-03-03 16:37:33 +00:00
{ stdenv, fetchFromGitHub, pkgconfig, fuse, pcre }:
stdenv.mkDerivation rec {
name = "rewritefs-${version}";
2016-07-27 02:51:08 +01:00
version = "2016-07-27";
2016-03-03 16:37:33 +00:00
src = fetchFromGitHub {
owner = "sloonz";
repo = "rewritefs";
2016-07-27 02:51:08 +01:00
rev = "fe19d389746bdffcc1cc7b3e3156dbacd04b4e9b";
sha256 = "15bcxprkxf0xqxljsqhb0jpi7p1vwqcb00sjs7nzrj7vh2p7mqla";
2016-03-03 16:37:33 +00:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ fuse 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 stdenv.lib; {
description = ''A FUSE filesystem intended to be used
like Apache mod_rewrite'';
homepage = "https://github.com/sloonz/rewritefs";
license = licenses.gpl2;
maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.linux;
};
}