uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
48
pkgs/servers/varnish/modules.nix
Normal file
48
pkgs/servers/varnish/modules.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, varnish, docutils, removeReferencesTo }:
|
||||
let
|
||||
common = { version, sha256, extraNativeBuildInputs ? [] }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "${varnish.name}-modules";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "varnish";
|
||||
repo = "varnish-modules";
|
||||
rev = version;
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
docutils
|
||||
pkg-config
|
||||
removeReferencesTo
|
||||
varnish.python # use same python version as varnish server
|
||||
];
|
||||
|
||||
buildInputs = [ varnish ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace bootstrap --replace "''${dataroot}/aclocal" "${varnish.dev}/share/aclocal"
|
||||
substituteInPlace Makefile.am --replace "''${LIBVARNISHAPI_DATAROOTDIR}/aclocal" "${varnish.dev}/share/aclocal"
|
||||
'';
|
||||
|
||||
postInstall = "find $out -type f -exec remove-references-to -t ${varnish.dev} '{}' +"; # varnish.dev captured only as __FILE__ in assert messages
|
||||
|
||||
meta = with lib; {
|
||||
description = "Collection of Varnish Cache modules (vmods) by Varnish Software";
|
||||
homepage = "https://github.com/varnish/varnish-modules";
|
||||
inherit (varnish.meta) license platforms maintainers;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
modules15 = common {
|
||||
version = "0.15.1";
|
||||
sha256 = "1lwgjhgr5yw0d17kbqwlaj5pkn70wvaqqjpa1i0n459nx5cf5pqj";
|
||||
};
|
||||
modules19 = common {
|
||||
version = "0.19.0";
|
||||
sha256 = "0qq5g6bbd1a1ml1wk8jj9z39a899jzqbf7aizr3pvyz0f4kz8mis";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue