mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
engelsystem: cleanup
The custom php with extensions is not needed. The default already has all the needed extensions enabled by default.
This commit is contained in:
parent
1e642b176b
commit
93aba53a08
2 changed files with 11 additions and 12 deletions
|
@ -3,8 +3,6 @@
|
||||||
let
|
let
|
||||||
inherit (lib) mkDefault mkEnableOption mkIf mkOption types mkPackageOption;
|
inherit (lib) mkDefault mkEnableOption mkIf mkOption types mkPackageOption;
|
||||||
cfg = config.services.engelsystem;
|
cfg = config.services.engelsystem;
|
||||||
phpExt = pkgs.php.withExtensions
|
|
||||||
({ enabled, all }: with all; [ filter mysqlnd mysqli pdo pdo_mysql mbstring ] ++ enabled);
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
services.engelsystem = {
|
services.engelsystem = {
|
||||||
|
@ -101,7 +99,6 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.phpfpm.pools.engelsystem = {
|
services.phpfpm.pools.engelsystem = {
|
||||||
phpPackage = phpExt;
|
|
||||||
user = "engelsystem";
|
user = "engelsystem";
|
||||||
settings = {
|
settings = {
|
||||||
"listen.owner" = config.services.nginx.user;
|
"listen.owner" = config.services.nginx.user;
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
{ lib, stdenv, fetchzip, php, writeText, nixosTests }:
|
{ lib
|
||||||
|
, fetchzip
|
||||||
|
, nixosTests
|
||||||
|
, php
|
||||||
|
, stdenv
|
||||||
|
, writeText
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
phpExt = php.withExtensions
|
|
||||||
({ enabled, all }: with all; [ filter mysqlnd mysqli pdo pdo_mysql mbstring ] ++ enabled);
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "engelsystem";
|
pname = "engelsystem";
|
||||||
version = "3.5.0";
|
version = "3.5.0";
|
||||||
|
@ -13,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-RbzAHBZN02u14WaLtq5EOh4XwIdHKvzX7NhDBhn/CaU=";
|
hash = "sha256-RbzAHBZN02u14WaLtq5EOh4XwIdHKvzX7NhDBhn/CaU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ phpExt ];
|
buildInputs = [ php ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -30,7 +32,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
echo $(command -v php)
|
echo $(command -v php)
|
||||||
# The patchShebangAuto function always used the php without extensions, so path the shebang manually
|
# The patchShebangAuto function always used the php without extensions, so path the shebang manually
|
||||||
sed -i -e "1 s|.*|#\!${phpExt}/bin/php|" "$out/share/engelsystem/bin/migrate"
|
sed -i -e "1 s|.*|#\!${lib.getExe php}|" "$out/share/engelsystem/bin/migrate"
|
||||||
ln -s "$out/share/engelsystem/bin/migrate" "$out/bin/migrate"
|
ln -s "$out/share/engelsystem/bin/migrate" "$out/bin/migrate"
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
|
@ -39,13 +41,13 @@ stdenv.mkDerivation rec {
|
||||||
passthru.tests = nixosTests.engelsystem;
|
passthru.tests = nixosTests.engelsystem;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
changelog = "https://github.com/engelsystem/engelsystem/releases/tag/v${version}";
|
||||||
description =
|
description =
|
||||||
"Coordinate your volunteers in teams, assign them to work shifts or let them decide for themselves when and where they want to help with what";
|
"Coordinate your volunteers in teams, assign them to work shifts or let them decide for themselves when and where they want to help with what";
|
||||||
homepage = "https://engelsystem.de";
|
homepage = "https://engelsystem.de";
|
||||||
changelog = "https://github.com/engelsystem/engelsystem/releases/tag/v${version}";
|
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ kloenk ];
|
|
||||||
mainProgram = "migrate";
|
mainProgram = "migrate";
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue