nixpkgs/pkgs/os-specific/linux/rewritefs/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

33 lines
892 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, fuse, pcre }:
stdenv.mkDerivation {
pname = "rewritefs";
version = "2017-08-14";
src = fetchFromGitHub {
owner = "sloonz";
repo = "rewritefs";
rev = "33fb844d8e8ff441a3fc80d2715e8c64f8563d81";
sha256 = "15bcxprkxf0xqxljsqhb0jpi7p1vwqcb00sjs7nzrj7vh2p7mqla";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ fuse pcre ];
prePatch = ''
# do not set sticky bit in nix store
substituteInPlace Makefile --replace 6755 0755
'';
preConfigure = "substituteInPlace Makefile --replace /usr/local $out";
meta = with 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;
};
}