watcher: init at 0.13.2, frankenphp: 1.2.5 -> 1.4.0 (#371724)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
fetchFromGitHub,
|
||||
php,
|
||||
brotli,
|
||||
watcher,
|
||||
testers,
|
||||
frankenphp,
|
||||
cctools,
|
||||
@@ -30,13 +31,13 @@ let
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "frankenphp";
|
||||
version = "1.2.5";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dunglas";
|
||||
repo = "frankenphp";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-X6lWbxgqj0wis/cljoNSh7AsH1zY30GTjSOAGXzUIek=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-DxKNem7U5DD2l34vIwE6s3TIM1PSixq2J/5jufk1JUc=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/caddy";
|
||||
@@ -44,11 +45,12 @@ buildGoModule rec {
|
||||
# frankenphp requires C code that would be removed with `go mod tidy`
|
||||
# https://github.com/golang/go/issues/26366
|
||||
proxyVendor = true;
|
||||
vendorHash = "sha256-U2B0ok6TgqUPMwlnkzpPkJLG22S3VpoU80bWwZAeaJo=";
|
||||
vendorHash = "sha256-KlWRyQz//sR24IJj9RvRtPQG0N0FjVSL6Yrq0Nhgi/A=";
|
||||
|
||||
buildInputs = [
|
||||
phpUnwrapped
|
||||
brotli
|
||||
watcher
|
||||
] ++ phpUnwrapped.buildInputs;
|
||||
nativeBuildInputs =
|
||||
[ makeBinaryWrapper ]
|
||||
@@ -65,6 +67,9 @@ buildGoModule rec {
|
||||
"netgo"
|
||||
"ousergo"
|
||||
"static_build"
|
||||
"nobadger"
|
||||
"nomysql"
|
||||
"nopgx"
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "watcher";
|
||||
version = "0.13.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "e-dant";
|
||||
repo = "watcher";
|
||||
tag = version;
|
||||
hash = "sha256-PpDeZBOdWJewZAyE1J1+IF8TxlkPXUuA9TDpQqtG8I4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Filesystem watcher. Works anywhere. Simple, efficient and friendly";
|
||||
homepage = "https://github.com/e-dant/watcher";
|
||||
changelog = "https://github.com/e-dant/watcher/releases/tag/${src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ gaelreyrol ];
|
||||
mainProgram = "tw";
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user