From 1a64deeb894dc95e2645a75771732c6cc53a79ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 4 Oct 2023 01:35:06 +0200 Subject: Squash changes containing private information There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository --- flakes/mypackages/pkgs/status_engine/worker.nix | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 flakes/mypackages/pkgs/status_engine/worker.nix (limited to 'flakes/mypackages/pkgs/status_engine/worker.nix') diff --git a/flakes/mypackages/pkgs/status_engine/worker.nix b/flakes/mypackages/pkgs/status_engine/worker.nix new file mode 100644 index 0000000..d8425e1 --- /dev/null +++ b/flakes/mypackages/pkgs/status_engine/worker.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, composerEnv, fetchurl, gearmand, callPackage, php81, config_file ? "/var/lib/status_engine/ui.yml" }: +let + gearman = php81.buildPecl rec { + # git describe + version = "2.1.0-12-g8fb88d5"; + pname = "gearman"; + src = fetchFromGitHub { + owner = "php"; + repo = "pecl-networking-gearman"; + rev = "8fb88d5a97111a7e8f0dc67553c387b49f047e53"; + sha256 = "sha256-VPJX29JfNjh0mHlYY+iYKBHSJGUINbWHvojyYBSkSho="; + }; + configureFlags = [ "--with-gearman=${gearmand}" ]; + nativeBuildInputs = [ gearmand ]; + }; + php = php81.withExtensions({ enabled, all }: enabled ++ (with all; [gearman redis mbstring bcmath iconv])); +in +(composerEnv.override { inherit php; }).buildPackage ( + import ./worker_php_packages.nix { inherit composerEnv fetchurl; } // rec { + name = "${pname}-${version}"; + pname = "worker"; + version = "master"; + src = fetchFromGitHub { + owner = "statusengine"; + repo = "worker"; + rev = "e20d6b5c83c6b3c6a2030c9506542fa59dcbb551"; + sha256 = "sha256-dcC+SLEqMUubp4JQFSuKNpd6U4VYvGR38Vn1jf6ZvTU="; + fetchSubmodules = true; + }; + passthru.php = php; + postInstall = '' + ln -s ${config_file} $out/etc/config.yml + ''; + preInstall = '' + cp ${./worker_composer.lock} $out/composer.lock + ''; +}) -- cgit v1.2.3