mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-05 04:10:19 +00:00
Merge master into staging-next
This commit is contained in:
@@ -256,6 +256,8 @@
|
||||
Refer to [upstream upgrade instructions](https://goteleport.com/docs/upgrading/overview/)
|
||||
and [release notes for v18](https://goteleport.com/docs/changelog/#1800-070325).
|
||||
|
||||
- `t-rex` has been removed due to being broken in nixpkgs and the upstream maintainer replacing it with the [BBOX project](https://www.bbox.earth/). To migrate to BBOX refer the [migration guide](https://www.bbox.earth/docs/tile-server/guides/#migration-from-t-rex).
|
||||
|
||||
- The `asterisk-lts` package was changed to v22 from v18. The default `asterisk` package was changed to v22 from v20. Asterisk version 18 has been dropped due to being EOL. The `asterisk-stable` (v20) package was unchanged. You may need to update /var/lib/asterisk to match the template files in `${asterisk-...}/var/lib/asterisk`.
|
||||
|
||||
- The `archipelago-minecraft` package was removed, as upstream no longer provides support for the Minecraft APWorld.
|
||||
|
||||
@@ -1184,6 +1184,12 @@
|
||||
"module-services-glance-quickstart": [
|
||||
"index.html#module-services-glance-quickstart"
|
||||
],
|
||||
"module-services-filesender": [
|
||||
"index.html#module-services-filesender"
|
||||
],
|
||||
"module-services-filesender-quickstart": [
|
||||
"index.html#module-services-filesender-quickstart"
|
||||
],
|
||||
"module-services-discourse": [
|
||||
"index.html#module-services-discourse"
|
||||
],
|
||||
|
||||
@@ -92,7 +92,7 @@ The pre-existing `services.ankisyncd` has been marked deprecated and will be dro
|
||||
|
||||
- [FCast Receiver](https://fcast.org), an open-source alternative to Chromecast and AirPlay. Available as [programs.fcast-receiver](#opt-programs.fcast-receiver.enable).
|
||||
|
||||
- [FileSender](https://filesender.org/), a file sharing software. Available as `services.filesender`.
|
||||
- [FileSender](https://filesender.org/), a file sharing software. Available as [services.filesender](#opt-services.filesender.enable).
|
||||
|
||||
- [Firefly-iii](https://www.firefly-iii.org), a free and open source personal finance manager. Available as [services.firefly-iii](#opt-services.firefly-iii.enable).
|
||||
|
||||
|
||||
@@ -1732,6 +1732,7 @@
|
||||
./services/web-apps/feishin.nix
|
||||
./services/web-apps/fider.nix
|
||||
./services/web-apps/filebrowser.nix
|
||||
./services/web-apps/filesender.nix
|
||||
./services/web-apps/firefly-iii-data-importer.nix
|
||||
./services/web-apps/firefly-iii.nix
|
||||
./services/web-apps/flame.nix
|
||||
|
||||
@@ -562,9 +562,6 @@ in
|
||||
Consider migrating or switching to Incus, or remove from your configuration.
|
||||
https://linuxcontainers.org/incus/docs/main/howto/server_migrate_lxd/
|
||||
'')
|
||||
(mkRemovedOptionModule [ "services" "filesender" ] ''
|
||||
services.filesender has been removed since it depends on simplesamlphp which was severely unmaintained.
|
||||
'')
|
||||
(mkRemovedOptionModule [ "services" "pghero" ] ''
|
||||
services.pghero has been removed because the (unmaintained) package was removed from Nixpkgs.
|
||||
'')
|
||||
|
||||
@@ -35,7 +35,7 @@ in
|
||||
options.services.agorakit = {
|
||||
enable = mkEnableOption "agorakit";
|
||||
|
||||
phpPackage = mkPackageOption pkgs "php83" { };
|
||||
phpPackage = mkPackageOption pkgs "php" { };
|
||||
|
||||
user = mkOption {
|
||||
default = "agorakit";
|
||||
|
||||
50
nixos/modules/services/web-apps/filesender.md
Normal file
50
nixos/modules/services/web-apps/filesender.md
Normal file
@@ -0,0 +1,50 @@
|
||||
# FileSender {#module-services-filesender}
|
||||
|
||||
[FileSender](https://filesender.org/software/) is a software that makes it easy to send and receive big files.
|
||||
|
||||
## Quickstart {#module-services-filesender-quickstart}
|
||||
|
||||
FileSender needs an authentication backend.
|
||||
The module currently only supports `oidc` (the default) and `fake` (for testing).
|
||||
Other backends are listed under [](#opt-services.filesender.auth.backend).
|
||||
|
||||
A minimal instance that authenticates against an OpenID Connect provider looks like this:
|
||||
|
||||
```nix
|
||||
{
|
||||
services.filesender = {
|
||||
enable = true;
|
||||
configureNginx = true;
|
||||
database.createLocally = true;
|
||||
|
||||
localDomain = "filesender.example.com";
|
||||
|
||||
settings = {
|
||||
admin = "admin";
|
||||
admin_email = "admin@example.com";
|
||||
email_reply_to = "noreply@example.com";
|
||||
};
|
||||
|
||||
auth = {
|
||||
oidc = {
|
||||
issuer = "https://login.example.com";
|
||||
clientID = "filesender";
|
||||
clientSecretFile = "/run/keys/filesender-oidc-client-secret";
|
||||
};
|
||||
|
||||
backend = "oidc";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
443
|
||||
80
|
||||
];
|
||||
}
|
||||
```
|
||||
|
||||
The OIDC provider must be configured with `https://filesender.example.com/oidc.php` as the redirect URI for the client and the `issuer` above must exactly match the issuer URL announced by your provider.
|
||||
|
||||
::: {.warning}
|
||||
When passing `clientSecretFile`, make sure to use a path outside the Nix store, such as `/run/keys/...`, and make sure it is readable by [](#opt-services.filesender.user).
|
||||
:::
|
||||
480
nixos/modules/services/web-apps/filesender.nix
Normal file
480
nixos/modules/services/web-apps/filesender.nix
Normal file
@@ -0,0 +1,480 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
mkEnableOption
|
||||
mkPackageOption
|
||||
mkOption
|
||||
types
|
||||
;
|
||||
|
||||
cfg = config.services.filesender;
|
||||
fpm = config.services.phpfpm.pools.filesender;
|
||||
|
||||
logDir = "/var/log/filesender";
|
||||
stateDir = "/var/lib/filesender";
|
||||
|
||||
format = pkgs.formats.php { finalVariable = "config"; };
|
||||
formatPrivate = pkgs.formats.php { };
|
||||
|
||||
configFile = format.generate "config.php" cfg.settings;
|
||||
configFilePrivate = formatPrivate.generate "config_private.php" {
|
||||
auth_sp_oidc_client_id = cfg.auth.oidc.clientID;
|
||||
auth_sp_oidc_client_secret = formatPrivate.lib.mkRaw ''
|
||||
trim(file_get_contents("${cfg.auth.oidc.clientSecretFile}"))
|
||||
'';
|
||||
};
|
||||
|
||||
filesenderConfigDirectory = pkgs.runCommand "filesender-config" { } ''
|
||||
mkdir $out
|
||||
cp ${configFile} $out/config.php
|
||||
|
||||
${lib.optionalString (cfg.auth.backend == "oidc") ''
|
||||
cp ${configFilePrivate} $out/config_private.php
|
||||
''}
|
||||
'';
|
||||
in
|
||||
{
|
||||
meta = {
|
||||
doc = ./filesender.md;
|
||||
teams = with lib.teams; [ ngi ];
|
||||
};
|
||||
|
||||
options.services.filesender = {
|
||||
enable = mkEnableOption "FileSender";
|
||||
package = mkPackageOption pkgs "filesender" { };
|
||||
user = mkOption {
|
||||
description = "User under which filesender runs.";
|
||||
type = types.str;
|
||||
default = "filesender";
|
||||
};
|
||||
database = {
|
||||
createLocally = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Create the PostgreSQL database and database user locally.
|
||||
'';
|
||||
};
|
||||
hostname = mkOption {
|
||||
type = types.str;
|
||||
default = "/run/postgresql";
|
||||
description = "Database hostname.";
|
||||
};
|
||||
port = mkOption {
|
||||
type = types.port;
|
||||
default = 5432;
|
||||
description = "Database port.";
|
||||
};
|
||||
name = mkOption {
|
||||
type = types.str;
|
||||
default = "filesender";
|
||||
description = "Database name.";
|
||||
};
|
||||
user = mkOption {
|
||||
type = types.str;
|
||||
default = "filesender";
|
||||
description = "Database user.";
|
||||
};
|
||||
passwordFile = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
example = "/run/keys/filesender-dbpassword";
|
||||
description = ''
|
||||
A file containing the password corresponding to
|
||||
[](#opt-services.filesender.database.user).
|
||||
'';
|
||||
};
|
||||
};
|
||||
settings = mkOption {
|
||||
type = types.submodule {
|
||||
freeformType = format.type;
|
||||
options = {
|
||||
site_url = mkOption {
|
||||
type = types.str;
|
||||
description = ''
|
||||
Site URL. Used in emails, to build URLs for logging in, logging
|
||||
out, build URL for upload endpoint for web workers, to include
|
||||
scripts etc.
|
||||
'';
|
||||
};
|
||||
admin = mkOption {
|
||||
type = types.commas;
|
||||
description = ''
|
||||
UIDs (as per the configured saml_uid_attribute) of FileSender administrators.
|
||||
Accounts with these UIDs can access the Admin page through the web UI.
|
||||
'';
|
||||
};
|
||||
admin_email = mkOption {
|
||||
type = types.commas;
|
||||
description = ''
|
||||
Email address of FileSender administrator(s).
|
||||
Emails regarding disk full etc. are sent here.
|
||||
You should use a role-address here.
|
||||
'';
|
||||
};
|
||||
storage_filesystem_path = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
description = ''
|
||||
FileSender storage root.
|
||||
|
||||
When using a storage-type filesystem, this is the absolute path
|
||||
to the file system where uploaded files are stored until they
|
||||
expire.
|
||||
'';
|
||||
};
|
||||
log_facilities = mkOption {
|
||||
type = format.type;
|
||||
default = [ { type = "error_log"; } ];
|
||||
description = ''
|
||||
Defines where FileSender logging is sent.
|
||||
|
||||
You can sent logging to a file, to syslog or to the default PHP
|
||||
log facility (as configured through your webserver's PHP module).
|
||||
|
||||
The directive takes an array of one or more logging targets.
|
||||
Logging can be sent to multiple targets simultaneously, each a
|
||||
list containing the name of the logging target and a number of
|
||||
attributes which vary per log target.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
default = { };
|
||||
description = ''
|
||||
Configuration options used by FileSender.
|
||||
|
||||
See [](https://docs.filesender.org/filesender/v3.0/admin/configuration/)
|
||||
for available options.
|
||||
'';
|
||||
};
|
||||
configureNginx = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "Configure nginx as a reverse proxy for FileSender.";
|
||||
};
|
||||
localDomain = mkOption {
|
||||
type = types.str;
|
||||
example = "filesender.example.org";
|
||||
description = "The domain serving your FileSender instance.";
|
||||
};
|
||||
poolSettings = mkOption {
|
||||
type =
|
||||
with types;
|
||||
attrsOf (oneOf [
|
||||
str
|
||||
int
|
||||
bool
|
||||
]);
|
||||
default = {
|
||||
"pm" = "dynamic";
|
||||
"pm.max_children" = "32";
|
||||
"pm.start_servers" = "2";
|
||||
"pm.min_spare_servers" = "2";
|
||||
"pm.max_spare_servers" = "4";
|
||||
"pm.max_requests" = "500";
|
||||
};
|
||||
description = ''
|
||||
Options for FileSender's PHP pool.
|
||||
|
||||
See the documentation on `php-fpm.conf` for details on configuration
|
||||
directives.
|
||||
'';
|
||||
};
|
||||
auth = {
|
||||
backend = lib.mkOption {
|
||||
type = lib.types.enum [
|
||||
"fake"
|
||||
"header"
|
||||
"oidc"
|
||||
"saml"
|
||||
"shibboleth"
|
||||
];
|
||||
default = "oidc";
|
||||
description = ''
|
||||
FileSender authentication backend.
|
||||
|
||||
Note that `saml` requires an external SimpleSAMLphp installation, which
|
||||
is not provided by this module and `fake` is for testing only.
|
||||
'';
|
||||
};
|
||||
|
||||
# https://docs.filesender.org/filesender/v3.0/admin/configuration/#:~:text=Authentication%3A%20SP%5Ffake
|
||||
fake = {
|
||||
authenticated = mkOption {
|
||||
internal = true;
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "Whether the fake user is authenticated.";
|
||||
};
|
||||
name = mkOption {
|
||||
internal = true;
|
||||
type = types.str;
|
||||
default = "User";
|
||||
description = "Fake user name.";
|
||||
};
|
||||
uid = mkOption {
|
||||
internal = true;
|
||||
type = types.str;
|
||||
default = "user";
|
||||
description = "Fake user UID.";
|
||||
};
|
||||
email = mkOption {
|
||||
internal = true;
|
||||
type = types.str;
|
||||
default = "user@example.org";
|
||||
description = "Fake user email.";
|
||||
};
|
||||
};
|
||||
|
||||
# https://docs.filesender.org/filesender/v3.0/admin/configuration/#:~:text=Authentication%3A%20OpenIDConnectClient
|
||||
oidc = {
|
||||
issuer = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
example = "https://login.example.com/realms/yourrealm";
|
||||
description = "OIDC issuer URL.";
|
||||
};
|
||||
clientID = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = "OIDC client ID.";
|
||||
};
|
||||
clientSecretFile = mkOption {
|
||||
type = types.nullOr types.externalPath;
|
||||
default = null;
|
||||
example = "/run/keys/filesender-oidc-client-secret";
|
||||
description = ''
|
||||
File containing the OIDC client secret.
|
||||
|
||||
Use a runtime path such as /run/keys/... so the secret is not copied
|
||||
into the Nix store.
|
||||
'';
|
||||
};
|
||||
idpAttribute = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = ''
|
||||
IdP identification for audit/statistics.
|
||||
'';
|
||||
};
|
||||
scopes = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [
|
||||
"openid"
|
||||
"profile"
|
||||
"email"
|
||||
];
|
||||
description = ''
|
||||
OIDC scopes to request during authentication.
|
||||
This allows customization of the information requested from the
|
||||
identity provider.
|
||||
'';
|
||||
};
|
||||
uidAttribute = mkOption {
|
||||
type = types.str;
|
||||
default = "sub";
|
||||
description = ''
|
||||
Name of the claim that contains the user's unique identifier.
|
||||
'';
|
||||
};
|
||||
emailAttribute = mkOption {
|
||||
type = types.str;
|
||||
default = "email";
|
||||
description = ''
|
||||
Name of the claim that contains the user's email address.
|
||||
'';
|
||||
};
|
||||
nameAttribute = mkOption {
|
||||
type = types.str;
|
||||
default = "name";
|
||||
description = ''
|
||||
Name of the claim that contains the user's full name.
|
||||
'';
|
||||
};
|
||||
groupsClaim = mkOption {
|
||||
type = types.str;
|
||||
default = "groups";
|
||||
description = ''
|
||||
Name of the claim that contains the user's groups.
|
||||
'';
|
||||
};
|
||||
requiredGroups = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
description = ''
|
||||
List of group names that users must belong to in order to access
|
||||
FileSender.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion =
|
||||
cfg.auth.backend != "oidc"
|
||||
|| (
|
||||
cfg.auth.oidc.issuer != "" && cfg.auth.oidc.clientID != "" && cfg.auth.oidc.clientSecretFile != null
|
||||
);
|
||||
message = ''
|
||||
services.filesender.oidc.issuer, clientID and clientSecretFile are
|
||||
required when services.filesender.settings.auth_sp_type = "oidc".
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
||||
services.phpfpm = {
|
||||
pools.filesender = {
|
||||
user = cfg.user;
|
||||
group = config.services.nginx.group;
|
||||
phpEnv = {
|
||||
FILESENDER_CONFIG_DIR = toString filesenderConfigDirectory;
|
||||
FILESENDER_LOG_DIR = logDir;
|
||||
};
|
||||
settings = {
|
||||
"listen.owner" = config.services.nginx.user;
|
||||
"listen.group" = config.services.nginx.group;
|
||||
}
|
||||
// cfg.poolSettings;
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = lib.mkIf cfg.configureNginx {
|
||||
enable = true;
|
||||
virtualHosts.${cfg.localDomain} = {
|
||||
root = "${cfg.package}/www";
|
||||
extraConfig = ''
|
||||
index index.php;
|
||||
'';
|
||||
locations = {
|
||||
"/".extraConfig = ''
|
||||
try_files $uri $uri/ /index.php?args;
|
||||
'';
|
||||
"~ [^/]\\.php(/|$)" = {
|
||||
extraConfig = ''
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:${fpm.socket};
|
||||
include ${pkgs.nginx}/conf/fastcgi.conf;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
'';
|
||||
};
|
||||
"~ /\\.".extraConfig = "deny all;";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.postgresql = lib.mkIf cfg.database.createLocally {
|
||||
enable = true;
|
||||
ensureDatabases = [ cfg.database.name ];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = cfg.database.user;
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.filesender.settings = lib.mkMerge [
|
||||
(lib.mkIf cfg.database.createLocally {
|
||||
db_host = "/run/postgresql";
|
||||
db_port = "5432";
|
||||
db_password = "."; # FileSender requires it even when on UNIX socket auth.
|
||||
})
|
||||
(lib.mkIf (!cfg.database.createLocally) {
|
||||
db_host = cfg.database.hostname;
|
||||
db_port = toString cfg.database.port;
|
||||
db_password = format.lib.mkRaw "file_get_contents('${cfg.database.passwordFile}')";
|
||||
})
|
||||
(lib.mkIf (cfg.auth.backend == "oidc") {
|
||||
# Without this, the session is started only after the auth check, so a
|
||||
# successful OIDC callback is invisible to subsequent requests.
|
||||
# See: https://docs.filesender.org/filesender/v3.0/admin/configuration/#auth_sp_force_session_start_first
|
||||
auth_sp_force_session_start_first = true;
|
||||
|
||||
auth_sp_oidc_issuer = cfg.auth.oidc.issuer;
|
||||
auth_sp_oidc_scopes = cfg.auth.oidc.scopes;
|
||||
auth_sp_oidc_uid_attribute = cfg.auth.oidc.uidAttribute;
|
||||
auth_sp_oidc_email_attribute = cfg.auth.oidc.emailAttribute;
|
||||
auth_sp_oidc_name_attribute = cfg.auth.oidc.nameAttribute;
|
||||
auth_sp_oidc_groups_claim = cfg.auth.oidc.groupsClaim;
|
||||
})
|
||||
(lib.mkIf (cfg.auth.backend == "oidc" && cfg.auth.oidc.requiredGroups != [ ]) {
|
||||
auth_sp_oidc_required_groups = cfg.auth.oidc.requiredGroups;
|
||||
})
|
||||
(lib.mkIf (cfg.auth.backend == "oidc" && cfg.auth.oidc.idpAttribute != null) {
|
||||
auth_sp_oidc_idp_attribute = cfg.auth.oidc.idpAttribute;
|
||||
})
|
||||
{
|
||||
site_url = lib.mkDefault "https://${cfg.localDomain}";
|
||||
db_type = "pgsql";
|
||||
db_username = cfg.database.user;
|
||||
db_database = cfg.database.name;
|
||||
|
||||
tmp_path = lib.mkDefault "/var/lib/filesender/tmp";
|
||||
storage_filesystem_path = lib.mkDefault "/var/lib/filesender/files";
|
||||
storage_filesystem_shred_path = lib.mkDefault "/var/lib/filesender/shredfiles";
|
||||
|
||||
auth_sp_type = cfg.auth.backend;
|
||||
auth_remote_user_default_domain = lib.mkDefault cfg.localDomain;
|
||||
}
|
||||
];
|
||||
|
||||
systemd.services.filesender-initdb = {
|
||||
description = "Init filesender DB";
|
||||
|
||||
wantedBy = [
|
||||
"multi-user.target"
|
||||
];
|
||||
before = [
|
||||
"phpfpm-filesender.service"
|
||||
];
|
||||
after = lib.optional cfg.database.createLocally "postgresql.target";
|
||||
requires = lib.optional cfg.database.createLocally "postgresql.target";
|
||||
|
||||
restartIfChanged = true;
|
||||
|
||||
serviceConfig = {
|
||||
Environment = [
|
||||
"FILESENDER_CONFIG_DIR=${toString filesenderConfigDirectory}"
|
||||
"FILESENDER_LOG_DIR=${logDir}"
|
||||
];
|
||||
Type = "oneshot";
|
||||
Group = config.services.nginx.group;
|
||||
User = "filesender";
|
||||
ExecStart = "${fpm.phpPackage}/bin/php ${cfg.package}/scripts/upgrade/database.php";
|
||||
};
|
||||
};
|
||||
|
||||
users.extraUsers.filesender = lib.mkIf (cfg.user == "filesender") {
|
||||
home = stateDir;
|
||||
group = config.services.nginx.group;
|
||||
createHome = true;
|
||||
isSystemUser = true;
|
||||
};
|
||||
|
||||
systemd.tmpfiles.settings = {
|
||||
"10-filesender" =
|
||||
let
|
||||
settings = {
|
||||
mode = "0750";
|
||||
user = cfg.user;
|
||||
group = config.services.nginx.group;
|
||||
};
|
||||
in
|
||||
{
|
||||
"${logDir}".d = settings;
|
||||
"${stateDir}".d = settings;
|
||||
"${stateDir}/files".d = settings;
|
||||
"${stateDir}/tmp".d = settings;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -653,6 +653,7 @@ in
|
||||
ferretdb = import ./ferretdb.nix { inherit pkgs runTest; };
|
||||
fider = runTest ./fider.nix;
|
||||
filebrowser = runTest ./filebrowser.nix;
|
||||
filesender = import ./filesender { inherit runTest; };
|
||||
filesystems-overlayfs = runTest ./filesystems-overlayfs.nix;
|
||||
firefly-iii = runTest ./firefly-iii.nix;
|
||||
firefly-iii-data-importer = runTest ./firefly-iii-data-importer.nix;
|
||||
@@ -1032,7 +1033,7 @@ in
|
||||
libinput = runTest ./libinput.nix;
|
||||
librechat = runTest ./librechat.nix;
|
||||
librenms = runTest ./librenms.nix;
|
||||
libreqos = runTestOn [ "x86_64-linux" ] ./libreqos.nix;
|
||||
libreqos = runTest ./libreqos.nix;
|
||||
libresprite = runTest ./libresprite.nix;
|
||||
libreswan = runTest ./libreswan.nix;
|
||||
libreswan-nat = runTest ./libreswan-nat.nix;
|
||||
|
||||
48
nixos/tests/filesender/auth-fake.nix
Normal file
48
nixos/tests/filesender/auth-fake.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
name = "FileSender";
|
||||
meta.teams = with lib.teams; [ ngi ];
|
||||
|
||||
nodes.filesender =
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
services.filesender = {
|
||||
enable = true;
|
||||
localDomain = "localhost";
|
||||
auth.backend = "fake";
|
||||
|
||||
settings = {
|
||||
force_ssl = false;
|
||||
admin = "user";
|
||||
admin_email = "admin@localhost";
|
||||
email_reply_to = "noreply@localhost";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
];
|
||||
};
|
||||
|
||||
testScript =
|
||||
# python
|
||||
''
|
||||
start_all()
|
||||
|
||||
filesender.wait_for_unit("phpfpm-filesender.service")
|
||||
filesender.wait_for_open_port(80)
|
||||
|
||||
filesender.succeed("curl -sS -f http://localhost/ -o /tmp/filesender.html")
|
||||
filesender.succeed("grep -q 'FileSender' /tmp/filesender.html")
|
||||
|
||||
filesender.succeed(
|
||||
"sudo -u postgres psql -d filesender -tAc 'select count(*) from transfers'"
|
||||
)
|
||||
'';
|
||||
|
||||
interactive.sshBackdoor.enable = true;
|
||||
}
|
||||
155
nixos/tests/filesender/auth-oidc.nix
Normal file
155
nixos/tests/filesender/auth-oidc.nix
Normal file
@@ -0,0 +1,155 @@
|
||||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
oidcPort = 5556;
|
||||
oidcIssuer = "http://127.0.0.1:${toString oidcPort}/dex";
|
||||
|
||||
siteUrl = "http://localhost";
|
||||
|
||||
user = {
|
||||
username = "user";
|
||||
password = "password";
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
name = "FileSender with OIDC";
|
||||
meta.teams = with lib.teams; [ ngi ];
|
||||
|
||||
nodes.filesender =
|
||||
{ ... }:
|
||||
{
|
||||
services.filesender = {
|
||||
enable = true;
|
||||
localDomain = "localhost";
|
||||
|
||||
settings = {
|
||||
site_url = siteUrl;
|
||||
force_ssl = false;
|
||||
admin = user.username;
|
||||
admin_email = "admin@localhost";
|
||||
email_reply_to = "noreply@localhost";
|
||||
};
|
||||
|
||||
auth = {
|
||||
oidc = {
|
||||
issuer = oidcIssuer;
|
||||
clientID = "filesender";
|
||||
clientSecretFile = "/etc/dex/filesender-secret";
|
||||
uidAttribute = "email";
|
||||
};
|
||||
backend = "oidc";
|
||||
};
|
||||
};
|
||||
|
||||
services.dex = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
issuer = oidcIssuer;
|
||||
storage.type = "memory";
|
||||
web.http = "127.0.0.1:${toString oidcPort}";
|
||||
oauth2.skipApprovalScreen = true;
|
||||
|
||||
staticClients = [
|
||||
{
|
||||
id = "filesender";
|
||||
name = "FileSender";
|
||||
redirectURIs = [ "${siteUrl}/oidc.php" ];
|
||||
secretFile = "/etc/dex/filesender-secret";
|
||||
}
|
||||
];
|
||||
|
||||
connectors = [
|
||||
{
|
||||
type = "mockPassword";
|
||||
id = "mock";
|
||||
name = "Test";
|
||||
config = {
|
||||
inherit (user) username password;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# WARN: This is world-readable. Don't do this in production !!!
|
||||
environment.etc."dex/filesender-secret" = {
|
||||
mode = "0444";
|
||||
text = "filesender-secret";
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
];
|
||||
};
|
||||
|
||||
testScript =
|
||||
# python
|
||||
''
|
||||
import re
|
||||
from shlex import quote
|
||||
|
||||
SITE_URL = "${siteUrl}"
|
||||
ISSUER = "${oidcIssuer}"
|
||||
USERNAME = "${user.username}"
|
||||
PASSWORD = "${user.password}"
|
||||
COOKIE_JAR = "/tmp/cookies"
|
||||
|
||||
|
||||
def curl(url, *flags):
|
||||
"""GET/POST `url` like a browser (persistent cookie jar) and return the body."""
|
||||
cmd = ["curl", "-fsS", "-b", COOKIE_JAR, "-c", COOKIE_JAR, *flags, url]
|
||||
return filesender.succeed(" ".join(quote(arg) for arg in cmd))
|
||||
|
||||
|
||||
def redirect_target(url, *flags):
|
||||
"""Request `url` without following redirects and return where it points to."""
|
||||
target = curl(url, "-o", "/dev/null", "-w", "%{redirect_url}", *flags)
|
||||
assert target, f"expected {url} to redirect"
|
||||
return target
|
||||
|
||||
|
||||
start_all()
|
||||
|
||||
with subtest("FileSender and Dex are up"):
|
||||
filesender.wait_for_unit("phpfpm-filesender.service")
|
||||
filesender.wait_for_open_port(80)
|
||||
|
||||
filesender.wait_for_unit("dex.service")
|
||||
filesender.wait_for_open_port(${toString oidcPort})
|
||||
|
||||
filesender.wait_until_succeeds(
|
||||
f"curl -fsS -o /dev/null {ISSUER}/.well-known/openid-configuration"
|
||||
)
|
||||
|
||||
with subtest("FileSender redirects an anonymous visitor to Dex"):
|
||||
dex_auth_url = redirect_target(f"{SITE_URL}/oidc.php?action=login&target=%2F")
|
||||
|
||||
with subtest("Dex serves the login form"):
|
||||
login_form = curl(dex_auth_url, "-L")
|
||||
match = re.search(r'state=([^"]+)">', login_form)
|
||||
assert match, "no state found in Dex login form"
|
||||
state = match.group(1)
|
||||
|
||||
with subtest("Submitting valid credentials redirects back to FileSender"):
|
||||
callback_url = redirect_target(
|
||||
f"{ISSUER}/auth/mock/login?back=&state={state}",
|
||||
"-d", f"login={USERNAME}",
|
||||
"-d", f"password={PASSWORD}",
|
||||
)
|
||||
|
||||
with subtest("FileSender exchanges the code and starts a session"):
|
||||
page = curl(callback_url, "-L")
|
||||
assert "topmenu_user" in page, "login did not produce an authenticated page"
|
||||
|
||||
with subtest("The session gives access to the user page"):
|
||||
user_page = curl(f"{SITE_URL}/?s=user", "-L")
|
||||
assert USERNAME in user_page, "user page does not mention the logged-in user"
|
||||
'';
|
||||
|
||||
interactive.sshBackdoor.enable = true;
|
||||
}
|
||||
8
nixos/tests/filesender/default.nix
Normal file
8
nixos/tests/filesender/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
runTest,
|
||||
...
|
||||
}:
|
||||
{
|
||||
auth-fake = runTest ./auth-fake.nix;
|
||||
auth-oidc = runTest ./auth-oidc.nix;
|
||||
}
|
||||
@@ -525,11 +525,11 @@
|
||||
"vendorHash": null
|
||||
},
|
||||
"hashicorp_azurerm": {
|
||||
"hash": "sha256-WEOhduXb/+QxThy7N+gTBS7xgPyQnU6vis3kcwBFGFU=",
|
||||
"hash": "sha256-hqcsfjeKDmE5ZwzqLES8SvaXLccWZGjq660Z4j4rHGo=",
|
||||
"homepage": "https://registry.terraform.io/providers/hashicorp/azurerm",
|
||||
"owner": "hashicorp",
|
||||
"repo": "terraform-provider-azurerm",
|
||||
"rev": "v5.12.0",
|
||||
"rev": "v5.14.0",
|
||||
"spdx": "MPL-2.0",
|
||||
"vendorHash": null
|
||||
},
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
php83,
|
||||
php,
|
||||
nix-update-script,
|
||||
dataDir ? "/var/lib/agorakit",
|
||||
nixosTests,
|
||||
}:
|
||||
|
||||
php83.buildComposerProject2 (finalAttrs: {
|
||||
php.buildComposerProject2 (finalAttrs: {
|
||||
pname = "agorakit";
|
||||
version = "1.11";
|
||||
version = "1.11.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "agorakit";
|
||||
repo = "agorakit";
|
||||
tag = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-YCHszRi+atEkaM9bHncpRtQsuiS6P22yKSqYzXq8flk=";
|
||||
sha256 = "sha256-1OLH65Hp9bmhqPFjU8K5xmMyWzqScjJDcuqpfZHQoSw=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
@@ -27,14 +28,21 @@ php83.buildComposerProject2 (finalAttrs: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
vendorHash = "sha256-3Kxuvmb3eZN3ChW59b5rITgCe4NqPHIBHau1PBmxPis=";
|
||||
vendorHash = "sha256-iwVmxsadA/HrNbJcsB1q21BINSSwPrBiwE3ztw/smvo=";
|
||||
composerStrictValidation = false;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
passthru = {
|
||||
tests = { inherit (nixosTests) agorakit; };
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Web-based, open-source groupware";
|
||||
longDescription = "AgoraKit is web-based, open-source groupware for citizens' initiatives. By creating collaborative groups, people can discuss topics, organize events, store files and keep everyone updated as needed. AgoraKit is a forum, calendar, file manager and email notifier.";
|
||||
longDescription = ''
|
||||
AgoraKit is web-based, open-source groupware for citizens' initiatives.
|
||||
By creating collaborative groups, people can discuss topics, organize events, store files and keep everyone updated as needed.
|
||||
AgoraKit is a forum, calendar, file manager and email notifier.
|
||||
'';
|
||||
homepage = "https://github.com/agorakit/agorakit";
|
||||
license = lib.licenses.agpl3Only;
|
||||
platforms = lib.platforms.all;
|
||||
|
||||
@@ -12,14 +12,14 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
|
||||
pname = "angr-management";
|
||||
# Keep angr-management, angr, archinfo, cle, and pyvex in sync.
|
||||
# nixpkgs-update: no auto update
|
||||
version = "10.0.5";
|
||||
version = "10.0.7";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "angr";
|
||||
repo = "angr-management";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-ST9vkSM8I3TbnmVpC1naB9S+5jZSxkU7GCKoVdKaPgM=";
|
||||
hash = "sha256-A+JIIF6Gvhx1PqF2mmwDZT6L0UpRcvggsjz0k51y1R0=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "astyle";
|
||||
version = "3.6.21";
|
||||
version = "3.6.24";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/astyle/astyle-${finalAttrs.version}.tar.bz2";
|
||||
hash = "sha256-JyPkO8D7RTlCo5QTNoMiL9hbEUPuauCx97Wx2zjfMc0=";
|
||||
hash = "sha256-lyA0sDbjh94jY5t5agaCbXiiyGRr40VLYOSK8TjpAzY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
6543
pkgs/by-name/bb/bbox/Cargo.lock
generated
Normal file
6543
pkgs/by-name/bb/bbox/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
65
pkgs/by-name/bb/bbox/package.nix
Normal file
65
pkgs/by-name/bb/bbox/package.nix
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
|
||||
pkg-config,
|
||||
protobuf,
|
||||
|
||||
sqlite,
|
||||
zstd,
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "bbox";
|
||||
version = "0.6.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bbox-services";
|
||||
repo = "bbox";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-FmY9Hqwv9lWjdEMe4JZM/nw8BaeZ+4eK+nibOUwcE+8=";
|
||||
};
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"pmtiles-0.12.0" = "sha256-wy22X51TcQOFxdXOInQxoL8DtFPqtV3pE0pQaEehtCA=";
|
||||
};
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
protobuf
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
sqlite
|
||||
zstd
|
||||
];
|
||||
|
||||
env.ZSTD_SYS_USE_PKG_CONFIG = true;
|
||||
|
||||
cargoBuildFlags = [
|
||||
# server including all features
|
||||
"--package bbox-server"
|
||||
];
|
||||
|
||||
cargoTestFlags = [ "--workspace" ];
|
||||
|
||||
meta = {
|
||||
description = "Composable spatial services";
|
||||
homepage = "https://www.bbox.earth/";
|
||||
downloadPage = "https://github.com/bbox-services/bbox/";
|
||||
changelog = "https://github.com/bbox-services/bbox/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
license = with lib.licenses; [
|
||||
asl20
|
||||
# or
|
||||
mit
|
||||
];
|
||||
teams = [ lib.teams.geospatial ];
|
||||
mainProgram = "bbox-server";
|
||||
};
|
||||
})
|
||||
@@ -36,14 +36,14 @@ let
|
||||
in
|
||||
python3.pkgs.buildPythonApplication (finalAttrs: {
|
||||
pname = "checkov";
|
||||
version = "3.3.26";
|
||||
version = "3.4.5";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bridgecrewio";
|
||||
repo = "checkov";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-q2aZfFoeBvg78uCLQxws4KaWH7yaE9CDm5TIOokscTs=";
|
||||
hash = "sha256-O0brspS07toTrp96k3/2KWUHAea7jdiUnvsua/OWpno=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
|
||||
13
pkgs/by-name/cl/clevercsv/package.nix
Normal file
13
pkgs/by-name/cl/clevercsv/package.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
let
|
||||
pythonPackages = python3Packages.overrideScope (
|
||||
self: super: {
|
||||
chardet = self.chardet_5;
|
||||
}
|
||||
);
|
||||
in
|
||||
with pythonPackages;
|
||||
toPythonApplication clevercsv
|
||||
@@ -8,16 +8,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "comrak";
|
||||
version = "0.59.0";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kivikakk";
|
||||
repo = "comrak";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-cqwvkEuHTTNP5PiWDIhWa8D8MAqIDVN8pWNMEWP3Yzc=";
|
||||
sha256 = "sha256-N1VP7KcpLK/KEXoWpE/qUq2S0aPKxGOdoZYSwpFpQhM=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-Bc9c0urg+iAKyjg9d2wwpLgq3EwJn4mJLl8oAB8PZD8=";
|
||||
cargoHash = "sha256-KhQFBv4RsKjfCNxGenWikNDcrPercNd5y8NAvBnS9LA=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "feishu-cli";
|
||||
version = "1.43.0";
|
||||
version = "1.44.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "riba2534";
|
||||
repo = "feishu-cli";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-GvmZAQf2yAfFmJmCr+nJQpdvegvnSknjTtFt31HecLM=";
|
||||
hash = "sha256-4bVzEn+zRzQVsE6zJoOyn2xatxYC35RhKeYTYkHPPn0=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-RdgOYh4DeGW2YOj4HBQUCCh8u1ekNPYEvn7KRGSXW78=";
|
||||
|
||||
69
pkgs/by-name/fi/filesender/package.nix
Normal file
69
pkgs/by-name/fi/filesender/package.nix
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
php,
|
||||
nixosTests,
|
||||
nix-update-script,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "filesender";
|
||||
version = "3.15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "filesender";
|
||||
repo = "filesender";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-IK8r0wqP2tEo1gtH4fPF5/hfXtR7rSwVUJ/Yci98kiY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# /nix/store is read-only, but filesender searches config and logs inside
|
||||
# of installation directory. This patch changes search directories to
|
||||
# `FILESENDER_CONFIG_DIR` and `FILESENDER_LOG_DIR` environment variables.
|
||||
./separate_mutable_paths.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# remove broken symlinks
|
||||
rm docker/assets/etc/nginx/sites-enabled/default
|
||||
rm docker/assets/usr/local/sbin/php-fpm-env
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/
|
||||
cp -R . $out/
|
||||
|
||||
ln -s ${finalAttrs.passthru.oidcDeps}/share/php/filesender-oidc/vendor \
|
||||
$out/optional-dependencies/oidc/vendor
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
oidcDeps = php.buildComposerProject2 {
|
||||
pname = "filesender-oidc";
|
||||
inherit (finalAttrs) version;
|
||||
src = "${finalAttrs.src}/optional-dependencies/oidc";
|
||||
vendorHash = "sha256-0ovOcWxzieEffmrhdC3P5Xh395G629cbfB2GbXgoU8M=";
|
||||
composerStrictValidation = false;
|
||||
};
|
||||
tests = {
|
||||
inherit (nixosTests) filesender;
|
||||
};
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [ "--subpackage=oidcDeps" ];
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Web application for sending large files to other users";
|
||||
homepage = "https://filesender.org/";
|
||||
changelog = "https://github.com/filesender/filesender/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = [ ];
|
||||
teams = with lib.teams; [ ngi ];
|
||||
};
|
||||
})
|
||||
147
pkgs/by-name/fi/filesender/separate_mutable_paths.patch
Normal file
147
pkgs/by-name/fi/filesender/separate_mutable_paths.patch
Normal file
@@ -0,0 +1,147 @@
|
||||
diff --git a/classes/utils/Config.class.php b/classes/utils/Config.class.php
|
||||
index 25d6cff6..be69059d 100644
|
||||
--- a/classes/utils/Config.class.php
|
||||
+++ b/classes/utils/Config.class.php
|
||||
@@ -30,7 +30,7 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
-if (!defined('FILESENDER_BASE')) { // Require environment (fatal)
|
||||
+if (!defined('FILESENDER_BASE') || !defined("FILESENDER_CONFIG_DIR")) { // Require environment (fatal)
|
||||
die('Missing environment');
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ class Config
|
||||
return;
|
||||
}
|
||||
if (preg_match('`'.$regex.'`', $matchValue)) {
|
||||
- $extra_config_file = FILESENDER_BASE.'/config/config-' . $extra_config_name . '.php';
|
||||
+ $extra_config_file = FILESENDER_CONFIG_DIR.'/config-' . $extra_config_name . '.php';
|
||||
if (file_exists($extra_config_file)) {
|
||||
$config = array();
|
||||
include_once($extra_config_file);
|
||||
@@ -185,7 +185,7 @@ class Config
|
||||
}
|
||||
|
||||
// Check if main config exists
|
||||
- $main_config_file = FILESENDER_BASE.'/config/config.php';
|
||||
+ $main_config_file = FILESENDER_CONFIG_DIR.'/config.php';
|
||||
if (!file_exists($main_config_file)) {
|
||||
throw new ConfigFileMissingException($main_config_file);
|
||||
}
|
||||
@@ -205,7 +205,7 @@ class Config
|
||||
|
||||
|
||||
// load password file if it is there
|
||||
- $pass_config_file = FILESENDER_BASE.'/config/config-passwords.php';
|
||||
+ $pass_config_file = FILESENDER_CONFIG_DIR.'/config-passwords.php';
|
||||
if (file_exists($pass_config_file)) {
|
||||
$config = array();
|
||||
include_once($pass_config_file);
|
||||
@@ -222,7 +222,7 @@ class Config
|
||||
throw new ConfigBadParameterException('virtualhost');
|
||||
}
|
||||
|
||||
- $config_file = FILESENDER_BASE.'/config/'.$virtualhost.'/config.php';
|
||||
+ $config_file = FILESENDER_CONFIG_DIR.$virtualhost.'/config.php';
|
||||
if (!file_exists($config_file)) {
|
||||
throw new ConfigFileMissingException($config_file);
|
||||
} // Should exist even if empty
|
||||
@@ -256,7 +256,7 @@ class Config
|
||||
// Load config overrides if any
|
||||
$overrides_cfg = self::get('config_overrides');
|
||||
if ($overrides_cfg) {
|
||||
- $overrides_file = FILESENDER_BASE.'/config/'.($virtualhost ? $virtualhost.'/' : '').'config_overrides.json';
|
||||
+ $overrides_file = FILESENDER_CONFIG_DIR.($virtualhost ? $virtualhost.'/' : '').'config_overrides.json';
|
||||
|
||||
$overrides = file_exists($overrides_file) ? json_decode(trim(file_get_contents($overrides_file))) : new StdClass();
|
||||
|
||||
@@ -545,7 +545,7 @@ class Config
|
||||
public static function getVirtualhosts()
|
||||
{
|
||||
$virtualhosts = array();
|
||||
- foreach (scandir(FILESENDER_BASE.'/config') as $item) {
|
||||
+ foreach (scandir(FILESENDER_CONFIG_DIR) as $item) {
|
||||
if (!preg_match('`^(.+)\.conf\.php$`', $item, $match)) {
|
||||
continue;
|
||||
}
|
||||
diff --git a/classes/utils/ConfigPrivate.class.php b/classes/utils/ConfigPrivate.class.php
|
||||
index 918f6c80..cbf17dad 100644
|
||||
--- a/classes/utils/ConfigPrivate.class.php
|
||||
+++ b/classes/utils/ConfigPrivate.class.php
|
||||
@@ -30,7 +30,7 @@
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
-if (!defined('FILESENDER_BASE')) { // Require environment (fatal)
|
||||
+if (!defined('FILESENDER_BASE') || !defined("FILESENDER_CONFIG_DIR")) { // Require environment (fatal)
|
||||
die('Missing environment');
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class ConfigPrivate
|
||||
return;
|
||||
}
|
||||
self::$config = array();
|
||||
- $config_file = FILESENDER_BASE.'/config/config_private.php';
|
||||
+ $config_file = FILESENDER_CONFIG_DIR.'/config_private.php';
|
||||
if (file_exists($config_file)) {
|
||||
self::$config = require($config_file);
|
||||
}
|
||||
diff --git a/config/csrf-protector-config.php b/config/csrf-protector-config.php
|
||||
index 83759ca4..abf9859c 100644
|
||||
--- a/config/csrf-protector-config.php
|
||||
+++ b/config/csrf-protector-config.php
|
||||
@@ -40,7 +40,7 @@ return array(
|
||||
// The following should be set correctly from your config.php
|
||||
// information
|
||||
"jsUrl" => $config['site_url'] . "/js/csrfprotector.js",
|
||||
- "logDirectory" => FILESENDER_BASE.'/log/',
|
||||
+ "logDirectory" => FILESENDER_LOG_DIR.'/',
|
||||
|
||||
// I found that leaving this with the _ as default
|
||||
// caused the implicit token to be stripped
|
||||
diff --git a/includes/ConfigDefaults.php b/includes/ConfigDefaults.php
|
||||
index f19682d9..9e27928b 100644
|
||||
--- a/includes/ConfigDefaults.php
|
||||
+++ b/includes/ConfigDefaults.php
|
||||
@@ -244,7 +244,7 @@ $default = array(
|
||||
'log_facilities' => array(
|
||||
array(
|
||||
'type' => 'file',
|
||||
- 'path' => FILESENDER_BASE.'/log/',
|
||||
+ 'path' => FILESENDER_LOG_DIR.'/',
|
||||
'rotate' => 'hourly'
|
||||
)
|
||||
),
|
||||
diff --git a/includes/ConfigValidation.php b/includes/ConfigValidation.php
|
||||
index 92ff1722..233c9b36 100644
|
||||
--- a/includes/ConfigValidation.php
|
||||
+++ b/includes/ConfigValidation.php
|
||||
@@ -31,9 +31,9 @@
|
||||
*/
|
||||
|
||||
// Require environment (fatal)
|
||||
-if(!defined('FILESENDER_BASE')) die('Missing environment');
|
||||
+if(!defined('FILESENDER_BASE') || !defined("FILESENDER_CONFIG_DIR")) die('Missing environment');
|
||||
|
||||
-if(!file_exists(FILESENDER_BASE.'/config/config.php'))
|
||||
+if(!file_exists(FILESENDER_CONFIG_DIR.'/config.php'))
|
||||
die('Configuration file not found');
|
||||
|
||||
ConfigValidator::addCheck('site_url', 'string');
|
||||
diff --git a/includes/init.php b/includes/init.php
|
||||
index 2e9547c9..676eac37 100644
|
||||
--- a/includes/init.php
|
||||
+++ b/includes/init.php
|
||||
@@ -35,6 +35,8 @@ if(PHP_INT_SIZE !== 8) {
|
||||
}
|
||||
|
||||
define('FILESENDER_BASE', dirname( __DIR__ ));
|
||||
+define('FILESENDER_CONFIG_DIR', getenv('FILESENDER_CONFIG_DIR', true) ?: (FILESENDER_BASE.'/config'));
|
||||
+define('FILESENDER_LOG_DIR', getenv('FILESENDER_LOG_DIR', true) ?: (FILESENDER_BASE.'/log'));
|
||||
|
||||
// Include classes autoloader
|
||||
require_once(FILESENDER_BASE.'/classes/autoload.php');
|
||||
--
|
||||
2.54.0
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
dart,
|
||||
}:
|
||||
let
|
||||
version = "1.0.2";
|
||||
version = "1.0.3";
|
||||
in
|
||||
flutter347.buildFlutterApplication {
|
||||
inherit version;
|
||||
@@ -24,7 +24,7 @@ flutter347.buildFlutterApplication {
|
||||
owner = "finamp-app";
|
||||
repo = "finamp";
|
||||
rev = version;
|
||||
hash = "sha256-OWV6t9rgtu5ioku0mMxRVCvGP3jKU9UGKFwfd7Lv3HM=";
|
||||
hash = "sha256-j/u4TaYmlqMG9DwFbcE6ebxWp2omYaWn56qJ509eEew=";
|
||||
};
|
||||
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
|
||||
@@ -72,13 +72,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "freerdp";
|
||||
version = "3.33.0";
|
||||
version = "3.33.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FreeRDP";
|
||||
repo = "FreeRDP";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-jp4Q4M4rtHp/3ISMx8jAMxB35Dsp2wxTHRcyPu8JnSU=";
|
||||
hash = "sha256-MjfkJKZhVq2Kp4JvUy04CtwXZFslO6RMmOgBTIf4duk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
}:
|
||||
|
||||
let
|
||||
version = "19.5.5";
|
||||
version = "19.5.6";
|
||||
package_version = "v${lib.versions.major version}";
|
||||
gitaly_package = "gitlab.com/gitlab-org/gitaly/${package_version}";
|
||||
|
||||
@@ -21,7 +21,7 @@ let
|
||||
owner = "gitlab-org";
|
||||
repo = "gitaly";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-fl8XICZIXfyZPHozlhvyQiU2qxWFdB2wSJP+zK4yZdk=";
|
||||
hash = "sha256-4g549XClJKdikzOv/WXylbTrouKmgIQdeVlAw5nKimg=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-oQwSX0FZ38ahGoaPf3cEL/lkkbXictNP4ZK0AEojfjY=";
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "gitlab-pages";
|
||||
version = "19.5.5";
|
||||
version = "19.5.6";
|
||||
|
||||
# nixpkgs-update: no auto update
|
||||
src = fetchFromGitLab {
|
||||
owner = "gitlab-org";
|
||||
repo = "gitlab-pages";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-HeoqUrQDZY1mTc0wusDhydCRLHZ4cJ5Jd5x6GEAkzxE=";
|
||||
hash = "sha256-V3LMq/VoWWZ4pOcjeyW/nwFcADMH2lz2EkDJMHslV/0=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-oOTts4+u+bGGldUtXofoSqUY1XjLb+TjrsIL5tDNeic=";
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"version": "19.5.5",
|
||||
"repo_hash": "sha256-wePe17Gj99BgueQ3pBUkMSMMNdqBQSoOk5TprpzPXHs=",
|
||||
"version": "19.5.6",
|
||||
"repo_hash": "sha256-a1UGSskgGHQ+0Ubtk2qrUaRQVwBjklb7is/NtjGTwNs=",
|
||||
"yarn_hash": "sha256-Rr5LDzycTsW/zBlk3esuzPnHeK42KcK4ZIFGY/n2bt0=",
|
||||
"frontend_islands_yarn_hash": "sha256-EvGQin+5DqqIgM36jlVkVI49WcJzVvceYnkSS9ybfcY=",
|
||||
"owner": "gitlab-org",
|
||||
"repo": "gitlab",
|
||||
"rev": "v19.5.5-ee",
|
||||
"rev": "v19.5.6-ee",
|
||||
"passthru": {
|
||||
"GITALY_SERVER_VERSION": "19.5.5",
|
||||
"GITLAB_KAS_VERSION": "19.5.5",
|
||||
"GITLAB_PAGES_VERSION": "19.5.5",
|
||||
"GITALY_SERVER_VERSION": "19.5.6",
|
||||
"GITLAB_KAS_VERSION": "19.5.6",
|
||||
"GITLAB_PAGES_VERSION": "19.5.6",
|
||||
"GITLAB_SHELL_VERSION": "14.58.0",
|
||||
"GITLAB_ELASTICSEARCH_INDEXER_VERSION": "5.14.17",
|
||||
"GITLAB_WORKHORSE_VERSION": "19.5.5"
|
||||
"GITLAB_WORKHORSE_VERSION": "19.5.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ in
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "gitlab-workhorse";
|
||||
|
||||
version = "19.5.5";
|
||||
version = "19.5.6";
|
||||
|
||||
# nixpkgs-update: no auto update
|
||||
src = fetchFromGitLab {
|
||||
|
||||
18
pkgs/by-name/gi/gitlab/rubyEnv/Gemfile.lock
generated
18
pkgs/by-name/gi/gitlab/rubyEnv/Gemfile.lock
generated
@@ -533,7 +533,7 @@ GEM
|
||||
activesupport (>= 4.0.0)
|
||||
mime-types (>= 1.16)
|
||||
ssrf_filter (~> 1.0, < 1.1.0)
|
||||
cbor (0.5.10.1)
|
||||
cbor (0.6.2.2)
|
||||
cgi (0.5.1)
|
||||
character_set (1.8.0)
|
||||
charlock_holmes (0.7.9)
|
||||
@@ -572,8 +572,8 @@ GEM
|
||||
json
|
||||
cork (0.3.0)
|
||||
colored2 (~> 3.1)
|
||||
cose (1.3.1)
|
||||
cbor (~> 0.5.9)
|
||||
cose (1.4.0)
|
||||
cbor (~> 0.6.2.2)
|
||||
openssl-signature_algorithm (~> 1.0)
|
||||
countries (4.0.1)
|
||||
i18n_data (~> 0.13.0)
|
||||
@@ -2409,11 +2409,11 @@ GEM
|
||||
warden (1.2.9)
|
||||
rack (>= 2.0.9)
|
||||
warning (1.5.0)
|
||||
webauthn (3.4.3)
|
||||
webauthn (3.4.4)
|
||||
android_key_attestation (~> 0.3.0)
|
||||
bindata (~> 2.4)
|
||||
cbor (~> 0.5.9)
|
||||
cose (~> 1.1)
|
||||
cbor (~> 0.6.2.2)
|
||||
cose (~> 1.4)
|
||||
openssl (>= 2.2)
|
||||
safety_net_attestation (~> 0.5.0)
|
||||
tpm-key_attestation (~> 0.14.0)
|
||||
@@ -2940,7 +2940,7 @@ CHECKSUMS
|
||||
capybara (3.40.0) sha256=42dba720578ea1ca65fd7a41d163dd368502c191804558f6e0f71b391054aeef
|
||||
capybara-screenshot (1.0.27) sha256=afa1896cc23df77be1774e8d3b3ce3953bf060aeaa04ff87607b5daf689174f2
|
||||
carrierwave (1.3.4) sha256=81772dabd1830edbd7f4526d2ae2c79f974f1d48900c3f03f7ecb7c657463a21
|
||||
cbor (0.5.10.1) sha256=79cdf79f18dcd9ee97e0b849c6d573e5a2e3ddc1954d180f384d6ed2612b6df0
|
||||
cbor (0.6.2.2) sha256=e8b09d8d8e983956b7aac991aa53a4d8ce721ce0cc3d8f5c8b2b2d8ffb5b98cd
|
||||
cgi (0.5.1) sha256=e93fcafc69b8a934fe1e6146121fa35430efa8b4a4047c4893764067036f18e9
|
||||
character_set (1.8.0) sha256=2b7317462adaedff0bd1576ae86d71bc5efe133a5d0b7c257021b00fe3153f51
|
||||
charlock_holmes (0.7.9) sha256=b49e8a11ce1921e2c5b65511bb864ae51720ce9bd1c336ccf0e89e6c8ae62db0
|
||||
@@ -2960,7 +2960,7 @@ CHECKSUMS
|
||||
connection_pool (2.5.5) sha256=e54ff92855753df1fd7c59fa04a398833355f27dd14c074f8c83a05f72a716ad
|
||||
console (1.29.2) sha256=afd9b75a1b047059dda22df0e3c0a386e96f50f6752c87c4b00b1a9fcbe77cd6
|
||||
cork (0.3.0) sha256=a0a0ac50e262f8514d1abe0a14e95e71c98b24e3378690e5d044daf0013ad4bc
|
||||
cose (1.3.1) sha256=d5d4dbcd6b035d513edc4e1ab9bc10e9ce13b4011c96e3d1b8fe5e6413fd6de5
|
||||
cose (1.4.0) sha256=2c8d66c31ab5a2d194b04edb91b38b281ad6a2e501f7850b9e5aaecc2cb82f42
|
||||
countries (4.0.1) sha256=d32e8a3c0b22949f1a41ea6d9005f5168ffce226f8fe077d1d6be785fffa81c5
|
||||
coverband (6.2.2) sha256=0e525f3ad256d2610fee489e937fb978388a9ad2d1157c230303a58fc839a6e3
|
||||
crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
|
||||
@@ -3668,7 +3668,7 @@ CHECKSUMS
|
||||
vmstat (2.3.1) sha256=5587cb430a54dbfc4a5c29dd01bd6a4031b2ff4c1d387504d74ff246f3b39104
|
||||
warden (1.2.9) sha256=46684f885d35a69dbb883deabf85a222c8e427a957804719e143005df7a1efd0
|
||||
warning (1.5.0) sha256=0f12c49fea0c06757778eefdcc7771e4fd99308901e3d55c504d87afdd718c53
|
||||
webauthn (3.4.3) sha256=9be6f5f838f3405b0226e560aa40b67cc8c15ec9154509b997caa7ec9a05e1fc
|
||||
webauthn (3.4.4) sha256=b9e7c95675c2892aa2ea07d050b9019fa057f2e9f03c23dee8a0af7dd404541d
|
||||
webfinger (2.1.3) sha256=567a52bde77fb38ca6b67e55db755f988766ec4651c1d24916a65aa70540695c
|
||||
webmock (3.26.2) sha256=774556f2ea6371846cca68c01769b2eac0d134492d21f6d0ab5dd643965a4c90
|
||||
webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131
|
||||
|
||||
12
pkgs/by-name/gi/gitlab/rubyEnv/gemset.nix
generated
12
pkgs/by-name/gi/gitlab/rubyEnv/gemset.nix
generated
@@ -1053,10 +1053,10 @@ src: {
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "1w3d5dhx4vjd707ihkcmq7fy78p5fgawcjdqw2byxnfw32gzgkbr";
|
||||
sha256 = "1kcqbgxqyb9bidf8ygfcw0f75knqli9sm4f9mavmcfcqis6rvc78";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.5.10.1";
|
||||
version = "0.6.2.2";
|
||||
};
|
||||
CFPropertyList = {
|
||||
dependencies = [
|
||||
@@ -1346,10 +1346,10 @@ src: {
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "1rbdzl9n8ppyp38y75hw06s17kp922ybj6jfvhz52p83dg6xpm6m";
|
||||
sha256 = "0higp0ncrbjskq5qbxq1wnidc6i8ifrr3nsfn2ad38mm3b1nd39c";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.3.1";
|
||||
version = "1.4.0";
|
||||
};
|
||||
countries = {
|
||||
dependencies = [
|
||||
@@ -10587,10 +10587,10 @@ src: {
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "1z710ndfr9yajywhji8mr5gc3j3wnr0alq754q15nh7k73wgbrlv";
|
||||
sha256 = "07al0ka7vbx0x3g26g7hx7r5g84z06wm1l07xai2m2f2fmbckrxr";
|
||||
type = "gem";
|
||||
};
|
||||
version = "3.4.3";
|
||||
version = "3.4.4";
|
||||
};
|
||||
webfinger = {
|
||||
dependencies = [
|
||||
|
||||
@@ -100,6 +100,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
# link system libbpf
|
||||
substituteInPlace lqos_sys/Cargo.toml \
|
||||
--replace-fail 'libbpf-sys = "1"' 'libbpf-sys = { version = "1", default-features = false }'
|
||||
|
||||
substituteInPlace lqos_sys/src/bpf/lqos_kern.c \
|
||||
--replace-fail '#ifndef __TARGET_ARCH_x86' '#if !defined(__TARGET_ARCH_x86) && !defined(__TARGET_ARCH_arm64)'
|
||||
|
||||
substituteInPlace lqos_sys/build.rs \
|
||||
--replace-fail '"-target",' '"-D__TARGET_ARCH_${
|
||||
if stdenv.hostPlatform.isAarch64 then "arm64" else "x86"
|
||||
}", "-target",'
|
||||
'';
|
||||
|
||||
# upstream pins an exact esbuild version and download on mismatch
|
||||
@@ -184,6 +192,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
maintainers = [ lib.maintainers.stepbrobd ];
|
||||
teams = [ lib.teams.ngi ];
|
||||
mainProgram = "lqosd";
|
||||
platforms = [ "x86_64-linux" ];
|
||||
platforms = [
|
||||
"aarch64-linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
};
|
||||
})
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
}:
|
||||
mkLibretroCore {
|
||||
core = "dolphin";
|
||||
version = "0-unstable-2026-10-29";
|
||||
version = "0-unstable-2026-11-11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "libretro";
|
||||
repo = "dolphin";
|
||||
rev = "b93001ed50c8b34e6ead4eed713c2005a80386e4";
|
||||
hash = "sha256-MzGXESJfTl0gJb1/y5tldLNScId9gO66LrDyP178l94=";
|
||||
rev = "0863ee3700978e826b0d95b72d4742e537a7325b";
|
||||
hash = "sha256-kwQXuhPPACchfCqOiMWhxkDNBy1/o3EJTI51wSLMUc8=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
|
||||
mkLibretroCore (finalAttrs: {
|
||||
core = "gearcoleco";
|
||||
version = "1.7.6";
|
||||
version = "1.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "drhelius";
|
||||
repo = "Gearcoleco";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-UJYHk+xuOYXQ2PHQw3SOSKeG775gVU1JCC7rOlejEZM=";
|
||||
hash = "sha256-5ZjA0ZHqha5rubYTG2HkrAreDddeCiG+7cf62V043L0=";
|
||||
};
|
||||
|
||||
sourceRoot = "source/platforms/libretro";
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "scalable-cli";
|
||||
version = "1.2.0";
|
||||
version = "1.3.0";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
@@ -18,10 +18,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
owner = "ScalableCapital";
|
||||
repo = "scalable-cli";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-I3M0gYJojhPEF709DBFfrtQr1HgmBrQIlQrh+325Yng=";
|
||||
hash = "sha256-hK+4cBnwFsP3rjVnkR1+SQtCf1hE8a+QeowWKX1m7E4=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-3790d4hzLQdNzTgmq+w5kMaIlK/qINzyKMQAQd78Eog=";
|
||||
cargoHash = "sha256-QZKy/W75y6yeBRg0CkYEfx0aawK0xirICiucE1SBt8Y=";
|
||||
|
||||
buildFeatures = [ "channel-prod" ];
|
||||
|
||||
|
||||
@@ -12,17 +12,17 @@
|
||||
|
||||
ocamlPackages.buildDunePackage (finalAttrs: {
|
||||
pname = "slipshow";
|
||||
version = "0.9.0";
|
||||
version = "0.13.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "panglesd";
|
||||
repo = "slipshow";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-6i7zbfk0uBgwoXlg5fLvC+onZMYKBJwUd74FUakt3jc=";
|
||||
hash = "sha256-BkGxclOb8QcLQCsGdBR+lPuuPcawTRb/RmQvDdsBSjs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./src/cli/main.ml \
|
||||
substituteInPlace ./src/version/slipshow_version.ml \
|
||||
--replace-fail '%%VERSION%%' '${finalAttrs.version}'
|
||||
'';
|
||||
|
||||
@@ -31,28 +31,26 @@ ocamlPackages.buildDunePackage (finalAttrs: {
|
||||
];
|
||||
|
||||
buildInputs = with ocamlPackages; [
|
||||
ansi
|
||||
base64
|
||||
bos
|
||||
cmdliner
|
||||
dream
|
||||
fmt
|
||||
fpath
|
||||
irmin-watcher
|
||||
grace
|
||||
js_of_ocaml-lwt
|
||||
linol
|
||||
linol-lwt
|
||||
logs
|
||||
lwt
|
||||
magic-mime
|
||||
ppx_blob
|
||||
ppx_deriving_yojson
|
||||
ppx_sexp_value
|
||||
ppx_sexp_conv
|
||||
sexplib
|
||||
];
|
||||
|
||||
# This check fails with cmdliner ≥ 2.0
|
||||
preCheck = ''
|
||||
rm -f test/compiler/dimension.t/run.t
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
nativeCheckInputs = [ versionCheckHook ];
|
||||
@@ -104,12 +102,13 @@ ocamlPackages.buildDunePackage (finalAttrs: {
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/panglesd/slipshow/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||
description = "Engine for displaying slips, the next-gen version of slides";
|
||||
downloadPage = "https://github.com/panglesd/slipshow";
|
||||
homepage = "https://slipshow.readthedocs.io/en/latest/index.html";
|
||||
license = lib.licenses.gpl3Only;
|
||||
downloadPage = "https://github.com/panglesd/slipshow";
|
||||
mainProgram = "slipshow";
|
||||
maintainers = [ lib.maintainers.ethancedwards8 ];
|
||||
teams = [ lib.teams.ngi ];
|
||||
mainProgram = "slipshow";
|
||||
};
|
||||
})
|
||||
|
||||
@@ -8,13 +8,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "snapraid";
|
||||
version = "15.1";
|
||||
version = "15.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "amadvance";
|
||||
repo = "snapraid";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-+bpuktwHRSTZH0un+nncEiYk9QJYS4fPdejrmYnYHW0=";
|
||||
hash = "sha256-KCidpX5MWjHW4i9Lhtyvglg0uVJktcL6kWJyMPXnF7U=";
|
||||
};
|
||||
|
||||
env.VERSION = finalAttrs.version;
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sv-lang";
|
||||
version = "12.0";
|
||||
version = "12.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MikePopoloski";
|
||||
repo = "slang";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-s52DzaOdVdXLahJ5fn92V5VhTgzdd3xYuIlWByq58+0=";
|
||||
hash = "sha256-8WffLY3IhsCkiYUMfe2aZy1zzOqEBHX4MTMai2dZFI0=";
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
gdal,
|
||||
openssl,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "t-rex";
|
||||
version = "0.15.0-alpha3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "t-rex-tileserver";
|
||||
repo = "t-rex";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-oZZrR86/acoyMX3vC1JGrpc8G+DEuplqfEAnaP+TBGU=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-z0YpX1dMWcn2N6fKDbT7lYEQC5PaDNNHi4CW88d/dgI=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gdal
|
||||
openssl
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Vector tile server specialized on publishing MVT tiles";
|
||||
homepage = "https://t-rex.bbox.earth/";
|
||||
changelog = "https://github.com/t-rex-tileserver/t-rex/blob/v${version}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
teams = [ lib.teams.geospatial ];
|
||||
mainProgram = "t_rex";
|
||||
platforms = lib.platforms.unix;
|
||||
broken = true; # see https://github.com/t-rex-tileserver/t-rex/issues/320
|
||||
};
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
fetchFromGitHub,
|
||||
alsa-utils,
|
||||
copyDesktopItems,
|
||||
electron_44,
|
||||
electron_45,
|
||||
libicns,
|
||||
makeDesktopItem,
|
||||
makeWrapper,
|
||||
@@ -15,20 +15,20 @@
|
||||
}:
|
||||
|
||||
let
|
||||
electron = electron_44;
|
||||
electron = electron_45;
|
||||
in
|
||||
buildNpmPackage rec {
|
||||
pname = "teams-for-linux";
|
||||
version = "2.29.0";
|
||||
version = "2.32.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "IsmaelMartinez";
|
||||
repo = "teams-for-linux";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-msMbWGKWOEIryu6c0sg+gRN/nfLd3yyr/+tjyVAyr/0=";
|
||||
hash = "sha256-9Fv17P8lObmD21f/1ddAHVEh6jWW80kq3O21HiHSq1Q=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-i3d9wShtiWXu0W+1iG20MRVwTFn5BIQr1PXdRaGoczM=";
|
||||
npmDepsHash = "sha256-sf6Yc4pgbXZQaEitEUb2i6x+ANWqoU7polPHIcBc29E=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
|
||||
39
pkgs/by-name/us/usblog/package.nix
Normal file
39
pkgs/by-name/us/usblog/package.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "usblog";
|
||||
version = "0.2.0";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "inradii";
|
||||
repo = "usblog";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-86OiIfSy+KVD96OKEk2CrQCGWrrhqnIeUeSDP/I9OBA=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-JhH+BrHqFtMWXvRtMau+YyAj0N7hZfUfc3eZa9DHM5s=";
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "USB event collection and diff tool for Linux";
|
||||
homepage = "https://github.com/inradii/usblog";
|
||||
changelog = "https://github.com/inradii/usblog/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
mainProgram = "usblog";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
@@ -13,14 +13,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "aioslimproto";
|
||||
version = "3.3.0";
|
||||
version = "3.6.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "music-assistant";
|
||||
repo = "aioslimproto";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-98GLhv60SaPQIi8OEWTVPz+3TT2rBRuXUKfF/8TG/nU=";
|
||||
hash = "sha256-2los1xXJpVVEX/jutr46CSlRstioSOCcgchIcGSK2NI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
alibabacloud-gateway-pop,
|
||||
alibabacloud-tea-openapi,
|
||||
buildPythonPackage,
|
||||
darabonba-core,
|
||||
@@ -9,18 +10,19 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "alibabacloud-cs20151215";
|
||||
version = "7.2.5";
|
||||
version = "7.4.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "alibabacloud_cs20151215";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-a57GD8/CE0EtF3tvNRByI+5S7tk0kfbkyfNFJhIBhxU=";
|
||||
hash = "sha256-38lVsIEXiZs69J9v64vxNfmPAEPXPs90unRec0y6M8A=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
alibabacloud-gateway-pop
|
||||
alibabacloud-tea-openapi
|
||||
darabonba-core
|
||||
];
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
alibabacloud-gateway-pop,
|
||||
alibabacloud-tea-openapi,
|
||||
buildPythonPackage,
|
||||
darabonba-core,
|
||||
@@ -9,18 +10,19 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "alibabacloud-ecs20140526";
|
||||
version = "7.11.9";
|
||||
version = "7.11.10";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "alibabacloud_ecs20140526";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-9Newv64n0L7US1fr62Qd6z9gLJlfFUY9lkInQsKOmcI=";
|
||||
hash = "sha256-VW2DlQSZWR48fK1amNP8SQUDZZmPAqBwoD6zsZPCTj0=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
alibabacloud-gateway-pop
|
||||
alibabacloud-tea-openapi
|
||||
darabonba-core
|
||||
];
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
alibabacloud-tea-openapi,
|
||||
buildPythonPackage,
|
||||
darabonba-core,
|
||||
fetchPypi,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "alibabacloud-gateway-pop";
|
||||
version = "0.1.6";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "alibabacloud_gateway_pop";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-SYdX+Psa/GqpYKlBz8NikkOA17wCGxi2BCfX5VXFXr0=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
alibabacloud-tea-openapi
|
||||
darabonba-core
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "alibabacloud_gateway_pop" ];
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Alibaba Cloud Gateway POP SDK Library for Python";
|
||||
homepage = "https://pypi.org/project/alibabacloud-gateway-pop/";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
})
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
alibabacloud-gateway-pop,
|
||||
alibabacloud-endpoint-util,
|
||||
alibabacloud-openapi-util,
|
||||
alibabacloud-tea-openapi,
|
||||
@@ -11,18 +12,19 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "alibabacloud-rds20140815";
|
||||
version = "16.1.1";
|
||||
version = "16.2.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "alibabacloud_rds20140815";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-3kFfMLz6XyiQQdJQxPMktIHiRLeeoJykFzInRWmgRUI=";
|
||||
hash = "sha256-h/G0RzPM5cOubAvXFJFjPh6Ca6xyNhPiM3tpTYBmZjI=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
alibabacloud-gateway-pop
|
||||
alibabacloud-endpoint-util
|
||||
alibabacloud-openapi-util
|
||||
alibabacloud-tea-openapi
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "angr";
|
||||
# Keep angr-management, angr, archinfo, cle, and pyvex in sync.
|
||||
version = "10.0.5";
|
||||
version = "10.0.7";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.12";
|
||||
@@ -57,12 +57,12 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "angr";
|
||||
repo = "angr";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-memxffALYmcDNm1MgzgBom+5FNFKI4ympOJvY/NsHAg=";
|
||||
hash = "sha256-/XiRMh60Mji4XKVMKG3lbL87tepR3c553E6BjW78Es8=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (finalAttrs) src pname version;
|
||||
hash = "sha256-rlztS1GC5GCBHdr9VaeGNOp5ni0qcA8ot1RSJlXFuMI=";
|
||||
hash = "sha256-EC14fYJHvRizizv2dPaiCJNUo90ief9ohqozoZweaaw=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage (finalAttrs: {
|
||||
pname = "archinfo";
|
||||
# Keep angr-management, angr, archinfo, cle, and pyvex in sync.
|
||||
# nixpkgs-update: no auto update
|
||||
version = "10.0.5";
|
||||
version = "10.0.7";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.12";
|
||||
@@ -20,7 +20,7 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "angr";
|
||||
repo = "archinfo";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-iM1w+H+MNoWOjSn0ugGztl0Bn2VoxIkasmna9L43KPc=";
|
||||
hash = "sha256-+0mWoJ4k4yp1fMbS/YgnXoxEx50lIjDUZJji/xnU/xU=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "asyauth";
|
||||
version = "0.0.24";
|
||||
version = "0.0.25";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-/Z+BrLpBSBxl0wXFfZ4Xv8ydbUWZ1uWV2RImRUtvGx0=";
|
||||
hash = "sha256-YyZZnnlRvfn9Hf7iCBHbvvQfX91ZHbzLjYr21O3DZ3U=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "avwx-engine";
|
||||
version = "1.9.10";
|
||||
version = "1.9.11";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "avwx-rest";
|
||||
repo = "avwx-engine";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-NkyZZVsw3hrsAkbHDYryCNYv+3Vg+1UanYymzUY/k+M=";
|
||||
hash = "sha256-0YaVF8oNzuEDhWeICb3lNanYIMUV8jfIUDK6VZWDV48=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "axis";
|
||||
version = "74";
|
||||
version = "75";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.14";
|
||||
@@ -25,13 +25,13 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "Kane610";
|
||||
repo = "axis";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-fWhQe4NklAva4znXUwYhrMdC/VCu4oZgwsyGuGd9csk=";
|
||||
hash = "sha256-VQ1voiVwRGOvCN8gpMRfOxTgD0DTww6ir9tqUFfoxjo=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "setuptools==82.0.1" "setuptools" \
|
||||
--replace-fail "wheel==0.47.0" "wheel"
|
||||
--replace-fail "setuptools==84.2.1" "setuptools" \
|
||||
--replace-fail "wheel==0.48.0" "wheel"
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -23,7 +23,7 @@ buildPythonPackage (finalAttrs: {
|
||||
pname = "cle";
|
||||
# Keep angr-management, angr, archinfo, cle, and pyvex in sync.
|
||||
# nixpkgs-update: no auto update
|
||||
version = "10.0.5";
|
||||
version = "10.0.7";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.12";
|
||||
@@ -32,7 +32,7 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "angr";
|
||||
repo = "cle";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-sOwZfl77pPqP4Gp07r9Ydw9KO1Mk5T+7jmjMQBiZs34=";
|
||||
hash = "sha256-c8c4cYf8faVbZAWWMTZp3fGxkS6CJeA/VgiSCssKBSY=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [ "arpy" ];
|
||||
@@ -80,6 +80,9 @@ buildPythonPackage (finalAttrs: {
|
||||
"test_debug_symbol_paths_nonexistent_path"
|
||||
"test_debug_symbol_paths_symbol_store_layout"
|
||||
"test_pdb"
|
||||
# Missing file
|
||||
"test_relocatable_object_empty"
|
||||
"test_arm"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "cle" ];
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
chardet_5,
|
||||
chardet,
|
||||
regex,
|
||||
packaging,
|
||||
|
||||
@@ -37,7 +37,7 @@ buildPythonPackage rec {
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
chardet_5
|
||||
chardet
|
||||
regex
|
||||
packaging
|
||||
];
|
||||
@@ -84,6 +84,7 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/alan-turing-institute/CleverCSV";
|
||||
changelog = "https://github.com/alan-turing-institute/CleverCSV/blob/${src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
broken = lib.versionAtLeast chardet.version "6";
|
||||
maintainers = with lib.maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "fastcore";
|
||||
version = "2.2.41";
|
||||
version = "2.2.44";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AnswerDotAI";
|
||||
repo = "fastcore";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-uz+5+DuGKWH8b78dGQXExn6+I3VK0bQlCM88K0VGyUA=";
|
||||
hash = "sha256-9KyiLzx83WOhXMXQKyrFro7evyM1kHMw/GbX4MVQCK0=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "heatzypy";
|
||||
version = "2.6.1";
|
||||
version = "2.6.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Cyr-ius";
|
||||
repo = "heatzypy";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-7hoei8uFDmSeqKSBmhmVoF5lZNuDkNqSFT+YjKPnJlk=";
|
||||
hash = "sha256-sYBSLrPTkxvJRZY3wsp6QWHA2HDeiufyIvBVN7XjNPs=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
|
||||
@@ -30,14 +30,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "mhcflurry";
|
||||
version = "2.3.28";
|
||||
version = "2.3.29";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openvax";
|
||||
repo = "mhcflurry";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-RnSn7DB6g/bmFYIfvpSDkhcqPyaU8rQQuiMLA05OKss=";
|
||||
hash = "sha256-VJ0JULgJhUE6NlJGlr70QVEtOSqetutBTzDbLlc0fPw=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "minikerberos";
|
||||
version = "0.4.11";
|
||||
version = "0.4.12";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-yy7LUPdiptCMPOTjoNIy5VLY75I0FwYbXifu1BtiGT0=";
|
||||
hash = "sha256-YHSY1DAELWulPzkKWhHgopyx03RLuxMO8ue/L16GsGw=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
@@ -11,6 +12,8 @@ buildPythonPackage (finalAttrs: {
|
||||
version = "0.6.1";
|
||||
pyproject = true;
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kontron";
|
||||
repo = "python-ipmi";
|
||||
@@ -29,6 +32,10 @@ buildPythonPackage (finalAttrs: {
|
||||
|
||||
pythonImportsCheck = [ "pyipmi" ];
|
||||
|
||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
"tests/interfaces/test_ipmbdev.py"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python IPMI Library";
|
||||
homepage = "https://github.com/kontron/python-ipmi";
|
||||
|
||||
@@ -17,7 +17,7 @@ buildPythonPackage (finalAttrs: {
|
||||
pname = "pyvex";
|
||||
# Keep angr-management, angr, archinfo, cle, and pyvex in sync.
|
||||
# nixpkgs-update: no auto update
|
||||
version = "10.0.5";
|
||||
version = "10.0.7";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.12";
|
||||
@@ -26,7 +26,7 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "angr";
|
||||
repo = "pyvex";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-3tYpSYdPZQ1aKAVonG9sMHZSjAguGIXQwNFSgL9J6bY=";
|
||||
hash = "sha256-uBorm371eTLDbjN+wS8+C4SNiy09q5dYLuJLUqW5+rw=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
||||
@@ -901,7 +901,6 @@ mapAliases {
|
||||
fetchmtn = throw "fetchmtn has been removed as it is not used in-tree and the only publically-readable Monotone network server might be now Monotone's source code itself (which is a bootstrapping problem). Use local checkouts or locally vendor/adapt a copy from an older Nixpkgs checkout."; # Added 2026-08-22
|
||||
fflogs = throw "fflogs has been removed because it stopped working on 2026-06-29 and was replaced by archon-lite"; # Added 2026-07-03
|
||||
FIL-plugins = throw "'FIL-plugins' has been renamed to/replaced by 'fil-plugins'"; # Converted to throw 2025-10-27
|
||||
filesender = throw "'filesender' has been removed because of its simplesamlphp dependency"; # Added 2025-10-17
|
||||
finger_bsd = throw "'finger_bsd' has been renamed to/replaced by 'bsd-finger'"; # Converted to throw 2025-10-27
|
||||
fingerd_bsd = throw "'fingerd_bsd' has been renamed to/replaced by 'bsd-fingerd'"; # Converted to throw 2025-10-27
|
||||
fira-code-nerdfont = throw "'fira-code-nerdfont' has been renamed to/replaced by 'nerd-fonts.fira-code'"; # Converted to throw 2025-10-27
|
||||
@@ -2677,6 +2676,7 @@ mapAliases {
|
||||
syrics = throw "'syrics' has been removed because it has been archived upstream 2026-02-22. Upstream suggests librelyrics as a replacement, which is not yet packaged in nixpkgs."; # Added 2026-10-23
|
||||
system = warnAlias "'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'" stdenv.hostPlatform.system; # Converted to warning 2025-10-28
|
||||
t1lib = throw "'t1lib' has been removed as it was broken and unmaintained upstream."; # Added 2025-06-11
|
||||
t-rex = throw "'t-rex' has been removed due to being broken in nixpkgs and the maintainer upstream replacing it with `bbox`. See <https://www.bbox.earth/docs/tile-server/guides/#migration-from-t-rex>"; # Added 2026-11-15
|
||||
tabnine = throw "'tabnine' has been removed as its source is unavailable"; # Added 2026-10-03
|
||||
tamgamp.lv2 = tamgamp-lv2; # Added 2025-09-27
|
||||
taplo-cli = throw "'taplo-cli' has been renamed to/replaced by 'taplo'"; # Converted to throw 2025-10-27
|
||||
|
||||
@@ -1416,8 +1416,6 @@ with pkgs;
|
||||
'';
|
||||
});
|
||||
|
||||
clevercsv = with python3Packages; toPythonApplication clevercsv;
|
||||
|
||||
cleanit = with python3Packages; toPythonApplication cleanit;
|
||||
|
||||
clickgen = with python3Packages; toPythonApplication clickgen;
|
||||
|
||||
@@ -744,6 +744,8 @@ self: super: with self; {
|
||||
callPackage ../development/python-modules/alibabacloud-gateway-oss-util
|
||||
{ };
|
||||
|
||||
alibabacloud-gateway-pop = callPackage ../development/python-modules/alibabacloud-gateway-pop { };
|
||||
|
||||
alibabacloud-gateway-sls = callPackage ../development/python-modules/alibabacloud-gateway-sls { };
|
||||
|
||||
alibabacloud-gateway-sls-util =
|
||||
|
||||
Reference in New Issue
Block a user