Commit Graph

75 Commits

Author SHA1 Message Date
Martin Weinelt
6dc52fe9a0
uwsgi: 2.0.26 -> 2.0.27
https://github.com/unbit/uwsgi/compare/2.0.26...2.0.27
2024-09-27 23:31:57 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
R. Ryantm
9d4be47fda uwsgi: 2.0.25.1 -> 2.0.26 2024-06-02 04:19:11 +00:00
Jussi Kuokkanen
8064d28a4f pkgs/servers: remove licenses.gpl2 2024-05-23 11:49:42 +03:00
R. Ryantm
ecb64f8b72 uwsgi: 2.0.24 -> 2.0.25.1 2024-04-29 09:39:41 +00:00
R. Ryantm
5c10f387c9 uwsgi: 2.0.23 -> 2.0.24 2024-02-09 04:55:47 +00:00
h7x4
12315f53ff treewide: add mainProgram 2023-11-24 21:01:03 +01:00
OTABI Tomoya
9b740a1bf8
Merge pull request #265535 from r-ryantm/auto-update/uwsgi
uwsgi: 2.0.22 -> 2.0.23
2023-11-10 18:10:54 +09:00
Adam Joseph
bc2d598878 treewide: change pythonForBuild to pythonOnBuildForHost 2023-11-05 17:42:12 -08:00
R. Ryantm
b6b7733e4a uwsgi: 2.0.22 -> 2.0.23 2023-11-04 22:00:11 +00:00
Pol Dellaiera
77829e4496
uwsgi: use finalAttrs pattern 2023-08-01 10:42:05 +02:00
Дамјан Георгиевски
80b45192a4
uwsgi: 2.0.21 -> 2.0.22
https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.22.html

* plugins/php: Fix PHP 8.2 compilation
* plugins/rack: fix compilation with Ruby 3.1, this breaks compilation for Ruby < 2.x
2023-08-01 10:41:41 +02:00
Adam Joseph
42815b4a0c treewide: systemdSupport: use lib.meta.availableOn
Many packages have some kind of flag indicating whether or not to build with
systemd support.  Most of these default to `stdenv.isLinux`, but systemd does
not build on (and is marked `broken` for) `isStatic`.  Only a few packages have
the needed `&& !isStatic` in the default value for their parameter.

This commit moves the logic for the default value of these flags into
`systemd.meta.{platforms,badPlatforms}` and evaluates those conditions using
`lib.meta.availableOn`.

This provides three benefits:

1. The default values are set correctly (i.e. including `&& isStatic`)

2. The default values are set consistently

3. The way is paved for any future non-Linux systemd platforms (FreeBSD is
   reported to have experimental systemd support)
2023-01-22 00:27:19 -08:00
Weijia Wang
0947d3e230 uwsgi: fix build on aarch64-darwin 2022-11-10 11:16:55 -05:00
Damjan Georgievski
b8f2368805 uwsgi: 2.0.20 -> 2.0.21
changelog: https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.21.html

the `missing-arginfo-php8.patch` is removed, since it's already been
merged upstream.

additionally, when php is enabled, make sure uwsgi loads the
...php-with-extensions-<ver>/lib/php.ini file
so that it will load all the extensions

lastly, change the source to fetchFromGitHub,
it seems the project web site is not that well maintained
2022-11-03 00:11:57 +01:00
Franz Pletz
2939285236
uwsgi: fix build with libxcrypt 2022-10-09 18:10:39 +02:00
Elis Hirwing
5d409065a4
nixos/uwsgi: Drop optionalstring based on PHP version 2022-06-08 18:10:04 +02:00
Дамјан Георгиевски
fffd75e23c uwsgi: non-weird postPatch :) 2021-12-03 01:46:40 +01:00
Дамјан Георгиевски
0ebda3cfb8 uwsgi: fix "Missing arginfo for uwsgi_version()" errors at runtime
https://github.com/unbit/uwsgi/issues/2356
<b>Warning</b>:  Missing arginfo for uwsgi_version() in <b>Unknown</b> on line <b>0</b><br />
2021-12-01 15:50:12 +01:00
Дамјан Георгиевски
f403517f58 uwsgi: the php 8.x library is just libphp.so, not libphp8
patch taken from the archlinux PKGBUILD
dc8835dbc3/trunk/PKGBUILD (L106)
2021-12-01 15:50:12 +01:00
Дамјан Георгиевски
e8ee414455 uwsgi bump version to 2.0.20, compatible with php8
uwsgi 2.0.19.1 fails to compile with php8
https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.20.html
2021-12-01 15:50:12 +01:00
Guillaume Girol
05e46e3e1f
Merge pull request #113242 from lopsided98/uwsgi-cross
uwsgi: fix cross-compilation
2021-07-14 14:22:22 +00:00
Sandro Jäckel
f0c2cd9f99
uwsgi: remove unused input 2021-02-17 13:31:28 +01:00
Ben Wolsieffer
1e54261f3d uwsgi: fix cross-compilation 2021-02-15 18:36:07 -05:00
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
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
rnhmjoj
01c7c2815c
uwsgi: build with capabilities support 2021-01-07 23:08:12 +01:00
Дамјан Георгиевски
41af371de2 uwsgi: add passthru.tests.uwsgi to derivation 2020-12-22 14:12:19 +01:00
Дамјан Георгиевски
87bed6c86a uwsgi: the php plugin needs to link with session.so
On NixOS the session.so php extension is a separate package (and not builtin
in libphp.so). But since the uwsgi php plugin uses the session
mechanisms, we need to link the plugin to that library too.

With this change uwsgipluginpy is hacked to take an additional UWSGICONFIG_PHP_LDFLAGS
environment variable and add it to its LDFLAGS, and then in the nix
expression the UWSGICONFIG_PHP_LDFLAGS is set to point to php.extensions.session
2020-12-22 14:12:15 +01:00
Дамјан Георгиевски
6dd858dc30 uwsgi: set UWSGICONFIG_PHPPATH to the php.dev store
uwsgi needs to run php-config to get the include path. set the
UWSGICONFIG_PHPPATH to the php-config in the php.dev store.

Patch common.h to directly include php_session.h (since it's a separate package on
nixos).

NIX_CFLAGS_LINK was removed since it doesn't seem to be used at all

https://github.com/unbit/uwsgi/blob/master/plugins/php/common.h
2020-12-22 14:09:20 +01:00
Vladimír Čunát
583470209f
Revert "Merge #97536: uwsgi: fix compiling and linking"
This reverts commit df4d0b03ef, reversing
changes made to b333263534.

It didn't even evaluate!
2020-12-21 22:48:19 +01:00
Дамјан Георгиевски
e189177c26 uwsgi: add passthru.tests.uwsgi to derivation 2020-12-21 17:52:04 +01:00
Дамјан Георгиевски
22e8804308 uwsgi: the php plugin needs to link with session.so
On NixOS the session.so php extension is a separate package (and not builtin
in libphp.so). But since the uwsgi php plugin uses the session
mechanisms, we need to link the plugin to that library too.

With this change uwsgipluginpy is hacked to take an additional UWSGICONFIG_PHP_LDFLAGS
environment variable and add it to its LDFLAGS, and then in the nix
expression the UWSGICONFIG_PHP_LDFLAGS is set to point to php.extensions.session
2020-12-21 16:50:54 +01:00
Дамјан Георгиевски
fd018e990b uwsgi: set UWSGICONFIG_PHPPATH to the php.dev store
uwsgi needs to run php-config to get the include path. set the
UWSGICONFIG_PHPPATH to the php-config in the php.dev store.

Patch common.h to directly include php_session.h (since it's a separate package on
nixos).

NIX_CFLAGS_LINK was removed since it doesn't seem to be used at all

https://github.com/unbit/uwsgi/blob/master/plugins/php/common.h
2020-12-21 16:50:53 +01:00
Symphorien Gibol
826b7c18b5 uwsgi: 2.0.18 -> 2.0.19.1
release notes:
https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.19.html
https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.19.1.html
2020-07-06 18:35:34 +02:00
talyz
72636bc2f6
php: Get rid of all config.php parameters
Since all options controlled by the config.php parameters can now be
overridden directly, there's no reason to keep them around.
2020-04-26 16:43:23 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Elis Hirwing
be7bf5a18d
php-embed: Drop the declaration of the php-embed attributes 2020-04-03 10:11:07 +02:00
Robin Gloster
5f2b92e3ec
treewide: NIX_*_COMPILE -> string 2019-12-31 00:13:29 +01:00
Vladimír Čunát
22a216849b
Re-Revert "Merge branch 'staging-next'"
This reverts commit f8a8fc6c7c.
2019-09-22 09:38:09 +02:00
Vladimír Čunát
f8a8fc6c7c
Revert "Merge branch 'staging-next'"
This reverts commit 41af38f372, reversing
changes made to f0fec244ca.

Let's delay this.  We have some serious regressions.
2019-09-21 20:05:09 +02:00
Izorkin
329a88efa7 treewide: replace mysql.connector-c to libmysqlclient 2019-09-09 15:55:34 +03:00
Vladimír Čunát
2e6bf42a22
Merge branch 'master' into staging-next
There ver very many conflicts, basically all due to
name -> pname+version.  Fortunately, almost everything was auto-resolved
by kdiff3, and for now I just fixed up a couple evaluation problems,
as verified by the tarball job.  There might be some fallback to these
conflicts, but I believe it should be minimal.

Hydra nixpkgs: ?compare=1538299
2019-08-24 08:55:37 +02:00
Robin Gloster
4e60b0efae
treewide: update globin's maintained drvs 2019-08-20 19:36:05 +02:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Daiderd Jordan
a5a3d6d60b
uwsgi: enable on darwin 2019-05-27 21:41:38 +02:00
R. RyanTM
37d1f59b36 uwsgi: 2.0.17.1 -> 2.0.18
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/uwsgi/versions
2019-02-15 01:58:21 -08:00
Jan Malakhovski
f56be70f3f uwsgi: move defaults to package file 2019-02-03 15:30:42 +00:00
Frederik Rietdijk
63bcd07888 python: add isPy2 attribute to passthru
Some packages relied on it. For consistency, also introduce isPy3 (which
is the same as isPy3k).
2019-01-04 12:31:42 +01:00