Merge staging-next into staging
This commit is contained in:
@@ -911,6 +911,12 @@ in
|
||||
|
||||
# Wait for PostgreSQL to be ready to accept connections.
|
||||
script = ''
|
||||
# If we're in standby mode, don't perform any setup
|
||||
if [[ -f "${cfg.dataDir}/standby.signal" ]]; then
|
||||
echo "Skipping setup because PostgreSQL is in standby mode"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
check-connection() {
|
||||
psql -d postgres -v ON_ERROR_STOP=1 <<-' EOF'
|
||||
SELECT pg_is_in_recovery() \gset
|
||||
|
||||
@@ -31,6 +31,7 @@ in
|
||||
# postgresql
|
||||
postgresql = importWithArgs ./postgresql.nix;
|
||||
postgresql-jit = importWithArgs ./postgresql-jit.nix;
|
||||
postgresql-replication = importWithArgs ./postgresql-replication.nix;
|
||||
postgresql-wal-receiver = importWithArgs ./postgresql-wal-receiver.nix;
|
||||
postgresql-tls-client-cert = importWithArgs ./postgresql-tls-client-cert.nix;
|
||||
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
{
|
||||
pkgs,
|
||||
makeTest,
|
||||
genTests,
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
|
||||
makeTestFor =
|
||||
package:
|
||||
makeTest {
|
||||
name = "postgresql-replication-${package.name}";
|
||||
meta.maintainers = with lib.maintainers; [ bouk ];
|
||||
|
||||
nodes = {
|
||||
primary =
|
||||
{ ... }:
|
||||
{
|
||||
services.postgresql = {
|
||||
inherit package;
|
||||
enable = true;
|
||||
enableTCPIP = true;
|
||||
settings = {
|
||||
wal_level = "replica";
|
||||
max_wal_senders = 10;
|
||||
max_replication_slots = 10;
|
||||
};
|
||||
authentication = ''
|
||||
local replication postgres peer
|
||||
host replication replication all trust
|
||||
'';
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "replication";
|
||||
ensureClauses.replication = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 5432 ];
|
||||
};
|
||||
|
||||
replica =
|
||||
{ nodes, ... }:
|
||||
{
|
||||
services.postgresql = {
|
||||
inherit package;
|
||||
enable = true;
|
||||
settings = {
|
||||
hot_standby = "on";
|
||||
primary_conninfo = "host=${nodes.primary.networking.primaryIPAddress} user=replication";
|
||||
primary_slot_name = "replica_slot";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
primary.wait_for_unit("postgresql.target")
|
||||
|
||||
primary.succeed(
|
||||
"sudo -u postgres psql -c \"SELECT * FROM pg_create_physical_replication_slot('replica_slot');\""
|
||||
)
|
||||
|
||||
primary.succeed(
|
||||
"sudo -u postgres pg_basebackup -D /tmp/basebackup -S replica_slot -X stream"
|
||||
)
|
||||
primary.succeed("tar -C /tmp -cf /tmp/shared/basebackup.tar basebackup")
|
||||
|
||||
replica.wait_for_unit("postgresql.target")
|
||||
replica.succeed("systemctl stop postgresql")
|
||||
|
||||
replica_data_dir = "/var/lib/postgresql/${package.psqlSchema}"
|
||||
replica.succeed(f"rm -rf {replica_data_dir}")
|
||||
replica.succeed(f"mkdir -p {replica_data_dir}")
|
||||
replica.succeed(f"tar -C {replica_data_dir} --strip-components=1 -xf /tmp/shared/basebackup.tar")
|
||||
replica.succeed(f"touch {replica_data_dir}/standby.signal")
|
||||
replica.succeed(f"chown -R postgres:postgres {replica_data_dir}")
|
||||
replica.succeed(f"chmod 700 {replica_data_dir}")
|
||||
|
||||
replica.succeed("systemctl start postgresql")
|
||||
replica.wait_for_unit("postgresql.target")
|
||||
|
||||
replica.wait_until_succeeds(
|
||||
"sudo -u postgres psql -tAc 'SELECT pg_is_in_recovery();' | grep t"
|
||||
)
|
||||
|
||||
primary.succeed(
|
||||
"sudo -u postgres psql -c 'CREATE TABLE test_replication (id serial PRIMARY KEY, data text);'"
|
||||
)
|
||||
primary.succeed(
|
||||
"sudo -u postgres psql -c \"INSERT INTO test_replication (data) VALUES ('hello');\""
|
||||
)
|
||||
|
||||
replica.wait_until_succeeds(
|
||||
"sudo -u postgres psql -c 'SELECT * FROM test_replication;' | grep hello",
|
||||
timeout=30
|
||||
)
|
||||
|
||||
with subtest("Verify replica is in recovery mode"):
|
||||
result = replica.succeed("sudo -u postgres psql -tAc 'SELECT pg_is_in_recovery();'")
|
||||
t.assertEqual(result.strip(), "t")
|
||||
|
||||
with subtest("Verify replication slot is active"):
|
||||
result = primary.succeed(
|
||||
"sudo -u postgres psql -tAc \"SELECT active FROM pg_replication_slots WHERE slot_name = 'replica_slot';\""
|
||||
)
|
||||
t.assertEqual(result.strip(), "t")
|
||||
|
||||
with subtest("Insert more data and verify replication"):
|
||||
primary.succeed(
|
||||
"sudo -u postgres psql -c \"INSERT INTO test_replication (data) VALUES ('world');\""
|
||||
)
|
||||
replica.wait_until_succeeds(
|
||||
"sudo -u postgres psql -c 'SELECT * FROM test_replication;' | grep world",
|
||||
timeout=30
|
||||
)
|
||||
|
||||
primary.shutdown()
|
||||
replica.shutdown()
|
||||
'';
|
||||
};
|
||||
in
|
||||
genTests { inherit makeTestFor; }
|
||||
@@ -9,6 +9,9 @@
|
||||
temporal =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
virtualisation.cores = 2;
|
||||
|
||||
networking.useDHCP = false;
|
||||
networking.firewall.allowedTCPPorts = [ 7233 ];
|
||||
|
||||
environment.systemPackages = [
|
||||
@@ -93,6 +96,7 @@
|
||||
asyncio.run(main())
|
||||
''
|
||||
)
|
||||
pkgs.grpc-health-probe
|
||||
pkgs.temporal-cli
|
||||
];
|
||||
|
||||
@@ -265,6 +269,18 @@
|
||||
temporal.wait_for_open_port(7234)
|
||||
temporal.wait_for_open_port(7235)
|
||||
|
||||
temporal.wait_until_succeeds(
|
||||
"grpc-health-probe -addr=localhost:7233 -service=temporal.api.workflowservice.v1.WorkflowService"
|
||||
)
|
||||
|
||||
temporal.wait_until_succeeds(
|
||||
"grpc-health-probe -addr=localhost:7234 -service=temporal.api.workflowservice.v1.HistoryService"
|
||||
)
|
||||
|
||||
temporal.wait_until_succeeds(
|
||||
"grpc-health-probe -addr=localhost:7235 -service=temporal.api.workflowservice.v1.MatchingService"
|
||||
)
|
||||
|
||||
temporal.wait_until_succeeds(
|
||||
"journalctl -o cat -u temporal.service | grep 'server-version' | grep '${pkgs.temporal.version}'"
|
||||
)
|
||||
@@ -274,32 +290,32 @@
|
||||
)
|
||||
|
||||
import json
|
||||
cluster_list_json = json.loads(temporal.wait_until_succeeds("temporal operator cluster list --output json"))
|
||||
cluster_list_json = json.loads(temporal.wait_until_succeeds("temporal operator cluster list --output json", timeout=60))
|
||||
assert cluster_list_json[0]['clusterName'] == "active"
|
||||
|
||||
cluster_describe_json = json.loads(temporal.wait_until_succeeds("temporal operator cluster describe --output json"))
|
||||
cluster_describe_json = json.loads(temporal.wait_until_succeeds("temporal operator cluster describe --output json", timeout=60))
|
||||
assert cluster_describe_json['serverVersion'] in "${pkgs.temporal.version}"
|
||||
|
||||
temporal.log(temporal.wait_until_succeeds("temporal operator namespace create --namespace default"))
|
||||
temporal.log(temporal.wait_until_succeeds("temporal operator namespace create --namespace default", timeout=60))
|
||||
|
||||
temporal.wait_until_succeeds(
|
||||
"journalctl -o cat -u temporal.service | grep 'Register namespace succeeded'"
|
||||
)
|
||||
|
||||
namespace_list_json = json.loads(temporal.wait_until_succeeds("temporal operator namespace list --output json"))
|
||||
namespace_list_json = json.loads(temporal.wait_until_succeeds("temporal operator namespace list --output json", timeout=60))
|
||||
assert len(namespace_list_json) == 2
|
||||
|
||||
namespace_describe_json = json.loads(temporal.wait_until_succeeds("temporal operator namespace describe --output json --namespace default"))
|
||||
namespace_describe_json = json.loads(temporal.wait_until_succeeds("temporal operator namespace describe --output json --namespace default", timeout=60))
|
||||
assert namespace_describe_json['namespaceInfo']['name'] == "default"
|
||||
assert namespace_describe_json['namespaceInfo']['state'] == "NAMESPACE_STATE_REGISTERED"
|
||||
|
||||
workflow_json = json.loads(temporal.wait_until_succeeds("temporal workflow list --output json"))
|
||||
workflow_json = json.loads(temporal.wait_until_succeeds("temporal workflow list --output json", timeout=60))
|
||||
assert len(workflow_json) == 0
|
||||
|
||||
out = temporal.wait_until_succeeds("temporal-hello-workflow.py")
|
||||
out = temporal.wait_until_succeeds("temporal-hello-workflow.py", timeout=60)
|
||||
assert "Result: Hello, World!" in out
|
||||
|
||||
workflow_json = json.loads(temporal.wait_until_succeeds("temporal workflow list --output json"))
|
||||
workflow_json = json.loads(temporal.wait_until_succeeds("temporal workflow list --output json", timeout=60))
|
||||
assert workflow_json[0]['execution']['workflowId'] == "hello-activity-workflow-id"
|
||||
assert workflow_json[0]['status'] == "WORKFLOW_EXECUTION_STATUS_COMPLETED"
|
||||
|
||||
|
||||
+6
-6
@@ -11,14 +11,14 @@ let
|
||||
path = "${drv}/parser";
|
||||
};
|
||||
|
||||
grammarPackage = grammars: pkgs.linkFarm "emacs-treesit-grammars" (map grammarToAttrSet grammars);
|
||||
|
||||
# Usage:
|
||||
# treesit-grammars.with-grammars (p: [ p.tree-sitter-bash p.tree-sitter-c ... ])
|
||||
with-grammars =
|
||||
fn:
|
||||
pkgs.linkFarm "emacs-treesit-grammars" (map grammarToAttrSet (fn pkgs.tree-sitter.builtGrammars));
|
||||
with-grammars = fn: grammarPackage (fn pkgs.tree-sitter.builtGrammars);
|
||||
|
||||
with-all-grammars = grammarPackage pkgs.tree-sitter.allGrammars;
|
||||
in
|
||||
{
|
||||
inherit with-grammars;
|
||||
|
||||
with-all-grammars = with-grammars (ps: lib.filter (p: !p.meta.broken) (lib.attrValues ps));
|
||||
inherit with-grammars with-all-grammars;
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ makeScopeWithSplicing' {
|
||||
extra = self: {
|
||||
mkLinphoneDerivation = self.mk-linphone-derivation;
|
||||
|
||||
linphoneSdkVersion = "5.4.67";
|
||||
linphoneSdkHash = "sha256-YG+GF6En1r8AYoIj7E5hqPcmXidMmO0ZKVx/YC5w55I=";
|
||||
linphoneSdkVersion = "5.4.48";
|
||||
linphoneSdkHash = "sha256-sOkq73YWbhpKJOk1dVc4tkg2+RuGyRK8/t4ckMIVVG8=";
|
||||
};
|
||||
f =
|
||||
self:
|
||||
|
||||
+2
-2
@@ -39,7 +39,7 @@ let
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "linphone-desktop";
|
||||
version = "5.3.2";
|
||||
version = "5.3.1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.linphone.org";
|
||||
@@ -47,7 +47,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
group = "BC";
|
||||
repo = "linphone-desktop";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-YBwN2d8Bhr876xDzzge1CutJEtWkoGJWwkybSKUDiM0=";
|
||||
hash = "sha256-TO9JNsOnx4sTJEkai0nDKNyZWcLuGoWfuKLBM79tQvs=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -98,7 +98,7 @@ let
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "mpv";
|
||||
version = "0.40.0";
|
||||
version = "0.41.0";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
@@ -111,33 +111,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
owner = "mpv-player";
|
||||
repo = "mpv";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-x8cDczKIX4+KrvRxZ+72TGlEQHd4Kx7naq0CSoOZGHA=";
|
||||
hash = "sha256-gJWqfvPE6xOKlgj2MzZgXiyOKxksJlY/tL6T/BeG19c=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# ffmpeg-8 compat:
|
||||
# https://github.com/mpv-player/mpv/pull/16145
|
||||
(fetchpatch {
|
||||
name = "ffmpeg-8.patch";
|
||||
url = "https://github.com/mpv-player/mpv/commit/26b29fba02a2782f68e2906f837d21201fc6f1b9.patch";
|
||||
hash = "sha256-ANNoTtIJBARHbm5IgrE0eEZyzmNhOnbVgve7iqCBzQg=";
|
||||
})
|
||||
# clipboard-wayland: prevent reading from hung up fd:
|
||||
# https://github.com/mpv-player/mpv/pull/16140
|
||||
(fetchpatch {
|
||||
name = "clipboard-wayland-prevent-hung-up-fd.patch";
|
||||
url = "https://github.com/mpv-player/mpv/commit/d20ded876d27497d3fe6a9494add8106b507a45c.patch";
|
||||
hash = "sha256-sll4BpeVW6OA+/vbH7ZfIh0/vePfPEX87vzUu/GCj44=";
|
||||
})
|
||||
# clipboard-wayland: read already sent data when the fd is hung up:
|
||||
# https://github.com/mpv-player/mpv/pull/16236
|
||||
(fetchpatch {
|
||||
name = "clipboard-wayland-read-sent-data-on-hangup.patch";
|
||||
url = "https://github.com/mpv-player/mpv/commit/896b3400f3cad286533dbb9cc3658ce18ed9966c.patch";
|
||||
hash = "sha256-GU0VdYC/Q0RCS/I2h4gBVNhScDLSAB2KxN3Ca6CGBMM=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = lib.concatStringsSep "\n" [
|
||||
# Don't reference compile time dependencies or create a build outputs cycle
|
||||
# between out and dev
|
||||
@@ -170,7 +146,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
(lib.mesonEnable "dvbin" dvbinSupport)
|
||||
(lib.mesonEnable "dvdnav" dvdnavSupport)
|
||||
(lib.mesonEnable "openal" openalSupport)
|
||||
(lib.mesonEnable "sdl2" sdl2Support)
|
||||
(lib.mesonEnable "sdl2-audio" sdl2Support)
|
||||
(lib.mesonEnable "sdl2-gamepad" sdl2Support)
|
||||
(lib.mesonEnable "sdl2-video" sdl2Support)
|
||||
];
|
||||
|
||||
mesonAutoFeatures = "auto";
|
||||
|
||||
@@ -21,16 +21,16 @@ let
|
||||
in
|
||||
buildNpmPackage' rec {
|
||||
pname = "balena-cli";
|
||||
version = "23.2.10";
|
||||
version = "23.2.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "balena-io";
|
||||
repo = "balena-cli";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-pmzXrywlNU8/jevBo/cyym6vA6/XrNc5vz66BwkLd5o=";
|
||||
hash = "sha256-+tTZRDDYHZqZBsH+RVX2pdOJPlRZqD4fFzir4VsdB3o=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-a3AU4UIlXRswBPya+e2AY3Yv21A2AQoWfGAJ7iDz740=";
|
||||
npmDepsHash = "sha256-y/DNm4TiPx515UgpiCX1U9fHLPk19/8LlfqTGZHDmAA=";
|
||||
|
||||
makeCacheWritable = true;
|
||||
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-audit";
|
||||
version = "0.21.2";
|
||||
version = "0.22.0";
|
||||
|
||||
src = fetchCrate {
|
||||
inherit pname version;
|
||||
hash = "sha256-bRBQpZ0YoKDh959a1a7+qEs2vh+dbP8vYcwbkNZQ5cQ=";
|
||||
hash = "sha256-Ha2yVyu9331NaqiW91NEwCTIeW+3XPiqZzmatN5KOws=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-MIwKgQM3LoNV9vcs8FfxTzqXhIhLkYd91dMEgPH++zk=";
|
||||
cargoHash = "sha256-f8nrW1l7UA8sixwqXBD1jCJi9qyKC5tNl/dWwCt41Lk=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
|
||||
@@ -17,11 +17,11 @@ rustPlatform.buildRustPackage rec {
|
||||
cargoHash = "sha256-1/bCyScvWQYeGZRitvksww4uvrzhifRBYcYPgGY2GRo=";
|
||||
|
||||
meta = {
|
||||
description = "Command-line tool for managing Architectural Decision Records";
|
||||
description = "TUI-like cli tool to manage the features of your rust-projects dependencies";
|
||||
homepage = "https://github.com/ToBinio/cargo-features-manager";
|
||||
changelog = "https://github.com/ToBinio/cargo-features-manager/blob/v${version}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
|
||||
mainProgram = "cargo-features-manager";
|
||||
mainProgram = "cargo-features";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,16 +8,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "cfspeedtest";
|
||||
version = "2.0.1";
|
||||
version = "2.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "code-inflation";
|
||||
repo = "cfspeedtest";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-q69ti2bEJBO7Evz8X2EQGbMP3n27fesSO1z8HaEhKJM=";
|
||||
hash = "sha256-MWVWYA++gxcKcCvBynVmm+l3qoSb6JKUtGUbRWEGrP8=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-AvcbA4V9Ht9yWNOPPVQvAGULiTh7cY92NaZJbOAOk1U=";
|
||||
cargoHash = "sha256-Oa+k+iBkKFdDcMAxrDdLNWhy2CakbX1G+AMlwGQFBsk=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
||||
@@ -6,18 +6,18 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "cnspec";
|
||||
version = "12.13.2";
|
||||
version = "12.14.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mondoohq";
|
||||
repo = "cnspec";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-i/vHKFvlHjTRPo2btOuc6vql7D5FSP7PvAsnIf7zEe0=";
|
||||
hash = "sha256-e/C3DPiHkjj8FVxO9CPVbPoP5+3ASFoqUOl0ui8zXPo=";
|
||||
};
|
||||
|
||||
proxyVendor = true;
|
||||
|
||||
vendorHash = "sha256-JIG+KV+5na6QdfT4lxUEzvE6HejzxthBRtmYAnsV+ko=";
|
||||
vendorHash = "sha256-CPSje0LdbWKCTq0hqo2FFF9r3rIwUUkEocC4LO0lG6g=";
|
||||
|
||||
subPackages = [ "apps/cnspec" ];
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "copilot-language-server";
|
||||
version = "1.405.0";
|
||||
version = "1.406.0";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/github/copilot-language-server-release/releases/download/${finalAttrs.version}/copilot-language-server-js-${finalAttrs.version}.zip";
|
||||
hash = "sha256-aeSiaK0loCN7IAAALlK2x4RBViYgplXRsiNMVLXlxws=";
|
||||
hash = "sha256-GGTERNSfg/XgM+5URVin05ocNe3JuH6+8JB7hBOqPrE=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cryfs";
|
||||
version = "1.0.1";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cryfs";
|
||||
repo = "cryfs";
|
||||
rev = version;
|
||||
hash = "sha256-QzxJUh6nD6243x443b0tIb1v2Zs8jRUk8IVarNqs47M=";
|
||||
hash = "sha256-WVHCZEUca/Snij1EO1etfyvF0UGGUXMQpI3fsQ0eNkA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -6,16 +6,22 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dev86";
|
||||
version = "1.0.1";
|
||||
version = "1.0.1-unstable-2025-02-12";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "jbruchon";
|
||||
repo = "dev86";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-xeOtESc0X7RZWCIpNZSHE8au9+opXwnHsAcayYLSX7w=";
|
||||
rev = "0332db1ceb238fa7f98603cdf4223a1d839d4b31";
|
||||
hash = "sha256-f6C7ykOmOHwxeMsF1Wm81FBBJNwTP0cF4+mFMzsc208=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix for GCC 15/C23 by de-K&R-ing function definitions and adding
|
||||
# missing parameters to function declarations where necessary.
|
||||
./unproto-c23-compatibility.patch
|
||||
];
|
||||
|
||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -0,0 +1,245 @@
|
||||
diff --git a/unproto/error.c b/unproto/error.c
|
||||
index 667d978cbb..2fbccacb4d 100644
|
||||
--- a/unproto/error.c
|
||||
+++ b/unproto/error.c
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
-extern void exit();
|
||||
+extern void exit(int status);
|
||||
|
||||
/* Application-specific stuff */
|
||||
|
||||
diff --git a/unproto/error.h b/unproto/error.h
|
||||
index dfb27e9067..cb52ae646b 100644
|
||||
--- a/unproto/error.h
|
||||
+++ b/unproto/error.h
|
||||
@@ -1,6 +1,6 @@
|
||||
/* @(#) error.h 1.2 92/01/15 21:53:14 */
|
||||
|
||||
extern int errcount; /* error counter */
|
||||
-extern void error(); /* default context */
|
||||
-extern void error_where(); /* user-specified context */
|
||||
-extern void fatal(); /* fatal error */
|
||||
+extern void error(char *text); /* default context */
|
||||
+extern void error_where(char *path, int line, char *text); /* user-specified context */
|
||||
+extern void fatal(char *text); /* fatal error */
|
||||
diff --git a/unproto/strsave.c b/unproto/strsave.c
|
||||
index 2ee00b4172..faa4e18686 100644
|
||||
--- a/unproto/strsave.c
|
||||
+++ b/unproto/strsave.c
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <string.h>
|
||||
|
||||
extern int hash(register char *s, unsigned size);
|
||||
-extern char *malloc();
|
||||
+extern char *malloc(long size);
|
||||
|
||||
/* Application-specific stuff */
|
||||
|
||||
diff --git a/unproto/symbol.c b/unproto/symbol.c
|
||||
index 67a4bf0bc6..a4beab5e92 100644
|
||||
--- a/unproto/symbol.c
|
||||
+++ b/unproto/symbol.c
|
||||
@@ -45,7 +45,7 @@
|
||||
#include <string.h>
|
||||
|
||||
extern int hash(register char *s, unsigned size);
|
||||
-extern char *malloc();
|
||||
+extern char *malloc(long size);
|
||||
|
||||
/* Application-specific stuff */
|
||||
|
||||
diff --git a/unproto/symbol.h b/unproto/symbol.h
|
||||
index 0711c1f4dc..0e2b1d88f8 100644
|
||||
--- a/unproto/symbol.h
|
||||
+++ b/unproto/symbol.h
|
||||
@@ -6,6 +6,6 @@
|
||||
struct symbol *next;
|
||||
};
|
||||
|
||||
-extern void sym_enter(); /* add symbol to table */
|
||||
-extern struct symbol *sym_find(); /* locate symbol */
|
||||
+extern void sym_enter(char *name, int type); /* add symbol to table */
|
||||
+extern struct symbol *sym_find(register char *name); /* locate symbol */
|
||||
extern void sym_init(); /* prime the table */
|
||||
diff --git a/unproto/tok_class.c b/unproto/tok_class.c
|
||||
index 04207a07f3..9af67188ca 100644
|
||||
--- a/unproto/tok_class.c
|
||||
+++ b/unproto/tok_class.c
|
||||
@@ -51,8 +51,8 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
-extern long time();
|
||||
-extern char* ctime();
|
||||
+extern long time(long *tloc);
|
||||
+extern char* ctime(long *clock);
|
||||
|
||||
/* Application-specific stuff */
|
||||
|
||||
@@ -61,13 +61,13 @@
|
||||
#include "token.h"
|
||||
#include "symbol.h"
|
||||
|
||||
-static struct token *tok_list();
|
||||
-static void tok_list_struct();
|
||||
-static void tok_list_append();
|
||||
-static void tok_strcat();
|
||||
-static void tok_time();
|
||||
-static void tok_date();
|
||||
-static void tok_space_append();
|
||||
+static struct token *tok_list(struct token *t);
|
||||
+static void tok_list_struct(register struct token *list, register struct token *t);
|
||||
+static void tok_list_append(struct token *h, struct token *t);
|
||||
+static void tok_strcat(register struct token *t1);
|
||||
+static void tok_time(struct token *t);
|
||||
+static void tok_date(struct token *t);
|
||||
+static void tok_space_append(register struct token *list, register struct token *t);
|
||||
|
||||
#if defined(MAP_VOID_STAR) || defined(MAP_VOID)
|
||||
static void tok_void(); /* rewrite void keyword */
|
||||
diff --git a/unproto/tok_io.c b/unproto/tok_io.c
|
||||
index 288950b3ac..773ca5bf4d 100644
|
||||
--- a/unproto/tok_io.c
|
||||
+++ b/unproto/tok_io.c
|
||||
@@ -89,7 +89,7 @@
|
||||
#include "vstring.h"
|
||||
#include "error.h"
|
||||
|
||||
-extern char *strsave(); /* XXX need include file */
|
||||
+extern char *strsave(register char *str); /* XXX need include file */
|
||||
|
||||
/* Stuff to keep track of original source file name and position */
|
||||
|
||||
@@ -104,12 +104,12 @@
|
||||
|
||||
/* Forward declarations */
|
||||
|
||||
-static int read_quoted();
|
||||
-static void read_comment();
|
||||
+static int read_quoted(register struct vstring *vs, int ch);
|
||||
+static void read_comment(register struct vstring *vs);
|
||||
static int backslash_newline();
|
||||
-static char *read_hex();
|
||||
-static char *read_octal();
|
||||
-static void fix_line_control();
|
||||
+static char *read_hex(struct vstring *vs, register char *cp);
|
||||
+static char *read_octal(register struct vstring *vs, register char *cp, register int c);
|
||||
+static void fix_line_control(register char *path, register int line);
|
||||
|
||||
/*
|
||||
* Character input with one level of pushback. The INPUT() macro recursively
|
||||
diff --git a/unproto/tok_pool.c b/unproto/tok_pool.c
|
||||
index e2ed107ce7..bbe3d184c5 100644
|
||||
--- a/unproto/tok_pool.c
|
||||
+++ b/unproto/tok_pool.c
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
/* C library */
|
||||
|
||||
-extern char *malloc();
|
||||
+extern char *malloc(long size);
|
||||
|
||||
/* Application-specific stuff */
|
||||
|
||||
diff --git a/unproto/token.h b/unproto/token.h
|
||||
index bb2f50a106..e3752a0eb3 100644
|
||||
--- a/unproto/token.h
|
||||
+++ b/unproto/token.h
|
||||
@@ -27,11 +27,11 @@
|
||||
/* Input/output functions and macros */
|
||||
|
||||
extern struct token *tok_get(); /* read next single token */
|
||||
-extern void tok_show(); /* display (composite) token */
|
||||
+extern void tok_show(register struct token *t); /* display (composite) token */
|
||||
extern struct token *tok_class(); /* classify tokens */
|
||||
-extern void tok_unget(); /* stuff token back into input */
|
||||
+extern void tok_unget(register struct token *t); /* stuff token back into input */
|
||||
extern void put_nl(); /* print newline character */
|
||||
-extern void tok_show_ch(); /* emit single-character token */
|
||||
+extern void tok_show_ch(register struct token *t); /* emit single-character token */
|
||||
|
||||
#define tok_flush(t) (tok_show(t), tok_free(t))
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
/* Memory management */
|
||||
|
||||
struct token *tok_alloc(); /* allocate token storage */
|
||||
-extern void tok_free(); /* re-cycle storage */
|
||||
+extern void tok_free(register struct token *t); /* re-cycle storage */
|
||||
|
||||
/* Context */
|
||||
|
||||
diff --git a/unproto/unproto.c b/unproto/unproto.c
|
||||
index 18fc2aaecf..802b91dd3e 100644
|
||||
--- a/unproto/unproto.c
|
||||
+++ b/unproto/unproto.c
|
||||
@@ -140,7 +140,7 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
-extern void exit();
|
||||
+extern void exit(int status);
|
||||
extern int optind;
|
||||
extern char *optarg;
|
||||
extern int getopt();
|
||||
@@ -159,16 +159,16 @@
|
||||
|
||||
/* Forward declarations. */
|
||||
|
||||
-static struct token *dcl_flush();
|
||||
-static void block_flush();
|
||||
+static struct token *dcl_flush(register struct token *t);
|
||||
+static void block_flush(register struct token *t);
|
||||
static void block_dcls();
|
||||
-static struct token *show_func_ptr_type();
|
||||
-static struct token *show_struct_type();
|
||||
-static void show_arg_name();
|
||||
-static void show_type();
|
||||
-static void pair_flush();
|
||||
-static void check_cast();
|
||||
-static void show_empty_list();
|
||||
+static struct token *show_func_ptr_type(struct token *t1, struct token *t2);
|
||||
+static struct token *show_struct_type(register struct token *p);
|
||||
+static void show_arg_name(register struct token *s);
|
||||
+static void show_type(register struct token *s);
|
||||
+static void pair_flush(register struct token *t, register int start, register int stop);
|
||||
+static void check_cast(struct token *t);
|
||||
+static void show_empty_list(register struct token *t);
|
||||
|
||||
#define check_cast_flush(t) (check_cast(t), tok_free(t))
|
||||
|
||||
diff --git a/unproto/vstring.c b/unproto/vstring.c
|
||||
index 220bd530fe..ef9bcffa3c 100644
|
||||
--- a/unproto/vstring.c
|
||||
+++ b/unproto/vstring.c
|
||||
@@ -67,8 +67,8 @@
|
||||
|
||||
/* C library */
|
||||
|
||||
-extern char *malloc();
|
||||
-extern char *realloc();
|
||||
+extern char *malloc(long size);
|
||||
+extern char *realloc(char *p, long size);
|
||||
|
||||
/* Application-specific stuff */
|
||||
|
||||
diff --git a/unproto/vstring.h b/unproto/vstring.h
|
||||
index c2e1f88a77..16a17aa815 100644
|
||||
--- a/unproto/vstring.h
|
||||
+++ b/unproto/vstring.h
|
||||
@@ -5,9 +5,9 @@
|
||||
char *last; /* last position */
|
||||
};
|
||||
|
||||
-extern struct vstring *vs_alloc(); /* initial allocation */
|
||||
-extern char *vs_realloc(); /* string extension */
|
||||
-extern char *vs_strcpy(); /* copy string */
|
||||
+extern struct vstring *vs_alloc(int len); /* initial allocation */
|
||||
+extern char *vs_realloc(register struct vstring *vp, char *cp); /* string extension */
|
||||
+extern char *vs_strcpy(register struct vstring *vp, register char *dst, register char *src); /* copy string */
|
||||
|
||||
/* macro to add one character to auto-resized string */
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
makeWrapper,
|
||||
amass,
|
||||
alterx,
|
||||
oam-tools,
|
||||
subfinder,
|
||||
dnsx,
|
||||
httpx,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@@ -37,8 +38,9 @@ buildGoModule rec {
|
||||
lib.makeBinPath [
|
||||
amass
|
||||
alterx
|
||||
oam-tools
|
||||
subfinder
|
||||
dnsx
|
||||
httpx
|
||||
]
|
||||
}"
|
||||
'';
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "gtdialog";
|
||||
version = "1.4";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "orbitalquark";
|
||||
repo = "gtdialog";
|
||||
rev = "gtdialog_${finalAttrs.version}";
|
||||
hash = "sha256-BJZP91HzGBm/G5sbKi3jyKQ2LD7l/PC1AoljthNxWtU=";
|
||||
hash = "sha256-TdYwT4bC+crTSNGJIr1Nno+/h1YgxNp0BR5MQtxdrVg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz";
|
||||
url = "https://files.dthompson.us/releases/guile-sdl2/guile-sdl2-${version}.tar.gz";
|
||||
hash = "sha256-V/XrpFrqOxS5mAphtIt2e3ewflK+HdLFEqOmix98p+w=";
|
||||
};
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchzip,
|
||||
openssl,
|
||||
lib,
|
||||
}:
|
||||
@@ -9,10 +9,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "hashpump";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bwall";
|
||||
repo = "HashPump";
|
||||
rev = "v${finalAttrs.version}";
|
||||
# Github repository got removed
|
||||
src = fetchzip {
|
||||
url = "https://web.archive.org/web/20201018005212/https://github.com/bwall/HashPump/archive/v1.20.tar.gz";
|
||||
hash = "sha256-xL/1os17agwFtdq0snS3ZJzwJhk22ujxfWLH65IMMEM=";
|
||||
};
|
||||
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>org.nixos.khd</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>@out@/bin/khd</string>
|
||||
</array>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
<key>ProcessType</key>
|
||||
<string>Interactive</string>
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>@out@/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
||||
</dict>
|
||||
<key>Sockets</key>
|
||||
<dict>
|
||||
<key>Listeners</key>
|
||||
<dict>
|
||||
<key>SockServiceName</key>
|
||||
<string>3021</string>
|
||||
<key>SockType</key>
|
||||
<string>dgram</string>
|
||||
<key>SockFamily</key>
|
||||
<string>IPv4</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,48 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "khd";
|
||||
version = "3.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koekeishiya";
|
||||
repo = "khd";
|
||||
rev = "v${version}";
|
||||
sha256 = "0nzfhknv1s71870w2dk9dy56a3g5zsbjphmfrz0vsvi438g099r4";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes build issues, remove with >3.0.0
|
||||
(fetchpatch {
|
||||
url = "https://github.com/koekeishiya/khd/commit/4765ae0b4c7d4ca56319dc92ff54393cd9e03fbc.patch";
|
||||
sha256 = "0kvf5hxi5bf6pf125qib7wn7hys0ag66zzpp4srj1qa87lxyf7np";
|
||||
})
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
make install
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/khd $out/bin/khd
|
||||
|
||||
mkdir -p $out/Library/LaunchDaemons
|
||||
cp ${./org.nixos.khd.plist} $out/Library/LaunchDaemons/org.nixos.khd.plist
|
||||
substituteInPlace $out/Library/LaunchDaemons/org.nixos.khd.plist --subst-var out
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Simple modal hotkey daemon for OSX";
|
||||
homepage = "https://github.com/koekeishiya/khd";
|
||||
downloadPage = "https://github.com/koekeishiya/khd/releases";
|
||||
platforms = lib.platforms.darwin;
|
||||
maintainers = with lib.maintainers; [ lnl7 ];
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -9,16 +9,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ko";
|
||||
version = "0.18.0";
|
||||
version = "0.18.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ko-build";
|
||||
repo = "ko";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-fAdogzNCuz8vHWF1UOFmDKSRXbNvY5knKIhfJzXNGzw=";
|
||||
hash = "sha256-o/Hin6GDFki1ynZ/rDQOhcNUTtQVvXZTAApxAaerRCU=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-R+vGG2u/unXffD/9Aq065zR7Xq9KEWZl4llYFxR0HLU=";
|
||||
vendorHash = "sha256-gYDYKNLTmJT0JvQ4wi/5p/3YmaaS4Re/wFqZxRbRVpg=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = [ ./autotools-define-conflict-debian-fix.patch ];
|
||||
|
||||
# Fix build with gcc15
|
||||
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
|
||||
|
||||
meta = {
|
||||
description = "Hash algorithms library";
|
||||
longDescription = ''
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchpatch,
|
||||
autoreconfHook,
|
||||
bzip2,
|
||||
doxygen,
|
||||
@@ -21,6 +22,14 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-PSkb7rvbSNK5NGCLwGGVtkHaY9Ko9eDThvLp1tBaC0I=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# readpst: Fix a build with gcc/C23 standard
|
||||
(fetchpatch {
|
||||
url = "https://github.com/pst-format/libpst/commit/cc600ee98c4ed23b8ab0bc2cf6b6c6e9cb587e89.patch";
|
||||
hash = "sha256-lD6vJrRbqnlG69+aU0v32UTxD0NfKNr6vPcysXK7ir0=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
doxygen
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "mkcal";
|
||||
version = "0.7.29";
|
||||
version = "0.7.30";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sailfishos";
|
||||
repo = "mkcal";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-H7TWu6tTh1vBmFx7kRpyijLCg0xs+dYIEJAERBEGh8g=";
|
||||
hash = "sha256-Sr4THufulhpTOXvMEUG1BA41Lcky34AGALxJojR7sac=";
|
||||
};
|
||||
|
||||
outputs = [
|
||||
|
||||
@@ -28,13 +28,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "musescore";
|
||||
version = "4.6.4";
|
||||
version = "4.6.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "musescore";
|
||||
repo = "MuseScore";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-fBkokokyCJcwYRgdrtWQEqW1rcdlmVQu1OrMJeKA8Sc=";
|
||||
hash = "sha256-lfgf09gLeoiXc0xsJvvKAnSJUjy/L2Fdis/9SNjb1KM=";
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
|
||||
@@ -68,16 +68,16 @@ let
|
||||
in
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "netbird-${componentName}";
|
||||
version = "0.60.3";
|
||||
version = "0.60.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "netbirdio";
|
||||
repo = "netbird";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-p+sfa9gZQltX9BsA0QUDDR3W9JGERUEzjahogIE2aq0=";
|
||||
hash = "sha256-XM4pUYimxbO3ZCmTPbg7dwDB3x2TnL9PUgbMfjHjxmo=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-vtyzl1fIl3vsj61X+l6Fc8BKqwM68iwkX5+WgcQRlME=";
|
||||
vendorHash = "sha256-b3Wl9jsAdYC91JM/kDo4yIF05hqbivtrcn1aRuZzP3s=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ] ++ lib.optional (componentName == "ui") pkg-config;
|
||||
|
||||
|
||||
@@ -17,16 +17,16 @@ let
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "npins";
|
||||
version = "0.3.1";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "andir";
|
||||
repo = "npins";
|
||||
tag = version;
|
||||
sha256 = "sha256-PPk9Ve1pM3X7NfGeGb8Jiq4YDEwAjErP4xzGwLaakTU=";
|
||||
sha256 = "sha256-ksOXi7u4bpHyWNHwkUR62fdwKowPW5GqBS7MA7Apwh4=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-YRW2TqbctuGC2M6euR4bb0m9a19m8WQVvWucRMpzkQE=";
|
||||
cargoHash = "sha256-A93cFkBt+gHCuLAE7Zk8DRmsGoMwJkqtgHZd4lbpFs0=";
|
||||
buildNoDefaultFeatures = true;
|
||||
buildFeatures = [
|
||||
"clap"
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "oam-tools";
|
||||
version = "0.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "owasp-amass";
|
||||
repo = "oam-tools";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-vt4V8em8Iaz3BVKIqlcAv+VIpJtD58xb3QrkIr4tYuU=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-yFKYZlA06yE48Wiz0cKgD57JEREwYyYkLM1NZPV8+Xc=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Analysis and management tools for an Open Asset Model database";
|
||||
homepage = "https://github.com/owasp-amass/oam-tools";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
fetchFromGitea,
|
||||
libpcap,
|
||||
}:
|
||||
|
||||
@@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
|
||||
pname = "pcapc";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "post-factum";
|
||||
repo = "pcapc";
|
||||
rev = "v${version}";
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
diff --git a/squashfs-tools/unsquashfs.c b/squashfs-tools/unsquashfs.c
|
||||
index ed5096b32d..adb6a91c7e 100644
|
||||
--- a/squashfs-tools/unsquashfs.c
|
||||
+++ b/squashfs-tools/unsquashfs.c
|
||||
@@ -146,7 +146,7 @@
|
||||
|
||||
#define MAX_LINE 16384
|
||||
|
||||
-void sigwinch_handler()
|
||||
+void sigwinch_handler(int _signal)
|
||||
{
|
||||
struct winsize winsize;
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
}
|
||||
|
||||
|
||||
-void sigalrm_handler()
|
||||
+void sigalrm_handler(int _signal)
|
||||
{
|
||||
rotate = (rotate + 1) % 4;
|
||||
}
|
||||
@@ -23,7 +23,12 @@ let
|
||||
hash = "sha256-4Mltt0yFt4oh9hsrHL8/ch5n7nZYiXIJ1UgLktPvlKQ=";
|
||||
};
|
||||
|
||||
patches = lib.optional stdenv.hostPlatform.isDarwin ./darwin.patch;
|
||||
patches = [
|
||||
# Fix build for GCC 15/C23 by adding parameters to unsquashfs signal
|
||||
# handlers instead of relying on an empty parameter list.
|
||||
./gcc15-fix-prototypes.patch
|
||||
]
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin ./darwin.patch;
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ which ];
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "soco-cli";
|
||||
version = "0.4.80";
|
||||
version = "0.4.81";
|
||||
pyproject = true;
|
||||
|
||||
disabled = python3.pythonOlder "3.6";
|
||||
@@ -15,7 +15,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
owner = "avantrec";
|
||||
repo = "soco-cli";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-w4F1N1ULGH7mbxtI8FpZ54ixa9o7N2A9OEiE2FOf73g=";
|
||||
hash = "sha256-Be/NzaO6EmpJC5NjNXhcp1K2ObXUduheqPWhsXI/Jc8=";
|
||||
};
|
||||
|
||||
build-system = with python3.pkgs; [ setuptools ];
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "splayer";
|
||||
version = "3.0.0-beta.6";
|
||||
version = "3.0.0-beta.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "imsyy";
|
||||
repo = "SPlayer";
|
||||
tag = "v${finalAttrs.version}";
|
||||
fetchSubmodules = false;
|
||||
hash = "sha256-7guh5KJ9RbYCiifH0ERXbIXxoJDxanUAHAf/zux7yU4=";
|
||||
hash = "sha256-W4XvYQ0O3Qnr9kRxTxt21UkU5dw66ww1qpIY3ph3elE=";
|
||||
};
|
||||
|
||||
pnpmDeps = fetchPnpmDeps {
|
||||
@@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
;
|
||||
pnpm = pnpm_10;
|
||||
fetcherVersion = 2;
|
||||
hash = "sha256-3t9Qx+1OQwqVvzgYssP8azGG/PNSJkrG614wQh0W4WQ=";
|
||||
hash = "sha256-lcSecyT55hFtRFPK7xtPhSbXynGIOgKIfV5T5tDQzfA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
}:
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "steel";
|
||||
version = "0-unstable-2025-12-06";
|
||||
version = "0-unstable-2025-12-17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mattwparas";
|
||||
repo = "steel";
|
||||
rev = "875b6739eed0b7d053a53e7b694496954f5681f6";
|
||||
hash = "sha256-RSjIYtRlgcTUSd9pJApRsvJ+GZZI4AThQdRzFFtM9rg=";
|
||||
rev = "b7c2306320ea05649ebcac3af7ecaa7aa0c77117";
|
||||
hash = "sha256-TjOTfka+ieAVHMjXymVDHlu29z6VoyB/7wYUGSiV/G4=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-bXAgp83U48GsTAuki3tsoOK7X+UepKJIlS0bL5qMc8I=";
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
# passthru dependencies
|
||||
nix-update-script,
|
||||
runCommand,
|
||||
makeBinaryWrapper,
|
||||
toml-test,
|
||||
|
||||
# Optional feature
|
||||
@@ -67,24 +68,46 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
# Some of the failures are reported issues, others may not be.
|
||||
# https://github.com/tamasfe/taplo/issues/486
|
||||
skips = [
|
||||
"valid/comment/nonascii"
|
||||
"valid/datetime/edge"
|
||||
"valid/key/quoted-unicode"
|
||||
"valid/string/quoted-unicode"
|
||||
"invalid/control/multi-cr"
|
||||
"invalid/control/rawmulti-cr"
|
||||
"invalid/table/append-with-dotted-keys-04"
|
||||
"invalid/table/super-twice"
|
||||
"valid/array/array"
|
||||
"valid/comment/everywhere"
|
||||
"valid/comment/nonascii"
|
||||
"valid/datetime/datetime"
|
||||
"valid/datetime/edge"
|
||||
"valid/datetime/leap-year"
|
||||
"valid/datetime/local"
|
||||
"valid/datetime/local-date"
|
||||
"valid/datetime/local-time"
|
||||
"valid/datetime/milliseconds"
|
||||
"valid/datetime/timezone"
|
||||
"valid/example"
|
||||
"valid/key/like-date"
|
||||
"valid/key/numeric-04"
|
||||
"valid/key/quoted-unicode"
|
||||
"valid/spec-1.0.0/local-date-0"
|
||||
"valid/spec-1.0.0/local-date-time-0"
|
||||
"valid/spec-1.0.0/local-time-0"
|
||||
"valid/spec-1.0.0/offset-date-time-0"
|
||||
"valid/spec-1.0.0/offset-date-time-1"
|
||||
"valid/spec-1.0.0/table-7"
|
||||
"valid/spec-example-1"
|
||||
"valid/spec-example-1-compact"
|
||||
"valid/string/quoted-unicode"
|
||||
];
|
||||
in
|
||||
runCommand "taplo-toml-test"
|
||||
{
|
||||
nativeBuildInputs = [
|
||||
finalAttrs.finalPackage
|
||||
makeBinaryWrapper
|
||||
toml-test
|
||||
];
|
||||
}
|
||||
''
|
||||
toml-test taplo ${lib.concatMapStringsSep " " (a: "-skip ${a}") skips} -- toml-test
|
||||
makeWrapper ${lib.getExe finalAttrs.finalPackage} ./taplo-toml-test --add-flag toml-test
|
||||
toml-test test -decoder=./taplo-toml-test -toml=1.0 ${
|
||||
lib.concatMapStringsSep " " (a: "-skip ${a}") skips
|
||||
}
|
||||
touch "$out"
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -8,16 +8,16 @@
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "toml-test";
|
||||
version = "1.6.0";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "toml-lang";
|
||||
repo = "toml-test";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-jOFkSEDNvvx8svgyYYpAbveQsclMsQRKJ2ocA6ty1Kw=";
|
||||
hash = "sha256-QJ7rK4zdPN8c728fR9r4vXnSk4Y9T/XQJulO7kQaYFE=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-yt5rwpYzO38wEUhcyG4G367Byek20Uz3u+buAazq/5A=";
|
||||
vendorHash = "sha256-aIGcv6qAQC3URQ/WIvg/+nRyrw1N2q5uBVpRH4fwgXk=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
@@ -26,6 +26,7 @@ buildGoModule (finalAttrs: {
|
||||
];
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "version";
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "tuios";
|
||||
version = "0.4.3";
|
||||
version = "0.4.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Gaurav-Gosain";
|
||||
repo = "tuios";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-4x5Vqd81/ZFXDpPUnJeOzI2DprAD49saL+aZZMAxI3w=";
|
||||
hash = "sha256-GptP8iw3yqXKJiYv7cJEdNCTib7HAhveFCwMKvfv+3I=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-uhqa850dHRHNZLXUMGg9Hb8skEY/5CrGmxSmnBytW/s=";
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
abseil-cpp,
|
||||
cmake,
|
||||
cmark-gfm,
|
||||
coreutils,
|
||||
fetchFromGitHub,
|
||||
fetchNpmDeps,
|
||||
kdePackages,
|
||||
@@ -92,10 +93,15 @@ gcc15Stdenv.mkDerivation (finalAttrs: {
|
||||
}"
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/share/systemd/user/vicinae.service \
|
||||
--replace-fail "/bin/kill" "${lib.getExe' coreutils "kill"}"
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = {
|
||||
description = "A focused launcher for your desktop — native, fast, extensible";
|
||||
description = "Native, fast, extensible launcher for the desktop";
|
||||
homepage = "https://github.com/vicinaehq/vicinae";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "wayback";
|
||||
version = "0.2";
|
||||
version = "0.3";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "wayback";
|
||||
repo = "wayback";
|
||||
tag = "${finalAttrs.version}";
|
||||
hash = "sha256-8pfW1tu7OI6dLSR9iiVuJDdK76fRgpQmesW5wJUVN/0=";
|
||||
hash = "sha256-/H0+zOAdrejHMNRcc94Wjgc4/s/M1rUegPcX+pBQcrY=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
@@ -12,7 +12,7 @@ buildGoModule rec {
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "brimdata";
|
||||
repo = "zed";
|
||||
repo = "zed-archive";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-NCoeTeOkxkCsj/nRBhMJeEshFuwozOXNJvgp8vyCQDk=";
|
||||
};
|
||||
|
||||
@@ -11,18 +11,18 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "zerofs";
|
||||
version = "0.22.4";
|
||||
version = "0.22.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Barre";
|
||||
repo = "ZeroFS";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-17KYkB5TtD+JYXhLVj09gcvETlpG1yC/U2Ql04Ur57g=";
|
||||
hash = "sha256-6kXdifgRfYWT9/bSyxTekdh2CT+Mqu13oO/cGM1b1qk=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/zerofs";
|
||||
|
||||
cargoHash = "sha256-5Yn4aaYo34NnwSnZ5kVPMe0xfkvu9fGk9OHje9q1oLw=";
|
||||
cargoHash = "sha256-OsuHhOQJFcigd57HEinwIvOjIaXv0X7/RjJLbY0D0eA=";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
@jre@/bin/java -cp @out@/lib/java/core-@version@.jar:@out@/lib/java/javase-@version@.jar "$@"
|
||||
@jre@/bin/java -cp @out@/lib/java/javase-@version@-jar-with-dependencies.jar "$@"
|
||||
|
||||
@@ -1,55 +1,55 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
maven,
|
||||
fetchFromGitHub,
|
||||
jre,
|
||||
}:
|
||||
|
||||
let
|
||||
maven.buildMavenPackage rec {
|
||||
pname = "zxing";
|
||||
version = "3.5.4";
|
||||
|
||||
# Maven builds are hard to get right
|
||||
core_jar = fetchurl {
|
||||
url = "https://repo1.maven.org/maven2/com/google/zxing/core/${version}/core-${version}.jar";
|
||||
hash = "sha256-cd5diTQbX89d2J2n9E6E2CXQ4ITN8+x3yaviaw8M6xM=";
|
||||
inherit jre;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zxing";
|
||||
repo = "zxing";
|
||||
tag = "zxing-${version}";
|
||||
hash = "sha256-D+ZKfDa406RIaTRhH9yXxgP8EpGe0iQU9CqkOMC4UdE=";
|
||||
};
|
||||
|
||||
javase_jar = fetchurl {
|
||||
url = "https://repo1.maven.org/maven2/com/google/zxing/javase/${version}/javase-${version}.jar";
|
||||
hash = "sha256-GWaDH0c9cv93IFeEGasRP2QXqXI0oXENK8zGUPWuDBI=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "zxing";
|
||||
inherit version jre;
|
||||
mvnHash = "sha256-wVkWbhi5b/rZ0EF5zlQr2BMVOm5nZ1DhI6SGksZO5Vg=";
|
||||
|
||||
dontUnpack = true;
|
||||
sourceRoot = "${src.name}/javase";
|
||||
|
||||
mvnParameters = "-Dproject.build.outputTimestamp=1980-01-01T00:00:02Z compile assembly:single";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out/lib/java" "$out/bin"
|
||||
cp "${core_jar}" "${javase_jar}" "$out/lib/java"
|
||||
substituteAll "${./java-zxing.sh}" "$out/bin/java-zxing"
|
||||
substituteAll "${./zxing-cmdline-runner.sh}" "$out/bin/zxing-cmdline-runner"
|
||||
substituteAll "${./zxing-cmdline-encoder.sh}" "$out/bin/zxing-cmdline-encoder"
|
||||
substituteAll "${./zxing.sh}" "$out/bin/zxing"
|
||||
chmod a+x "$out/bin"/*
|
||||
pushd "$out/lib/java"
|
||||
for i in *.jar; do
|
||||
mv "$i" "''${i#*-}"
|
||||
cp "target/javase-${version}-jar-with-dependencies.jar" "$out/lib/java"
|
||||
for source in "${./java-zxing.sh}" "${./zxing-cmdline-encoder.sh}" "${./zxing-cmdline-runner.sh}" "${./zxing-gui-runner.sh}" "${./zxing.sh}"; do
|
||||
target="''${source#*-}"
|
||||
target="$out/bin/''${target%.sh}"
|
||||
substituteAll "$source" "$target"
|
||||
chmod a+x "$target"
|
||||
done
|
||||
popd
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/zxing/zxing/releases/tag/zxing-${version}";
|
||||
description = "1D and 2D code reading library";
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
sourceProvenance = with lib.sourceTypes; [
|
||||
binaryBytecode
|
||||
fromSource
|
||||
];
|
||||
license = lib.licenses.asl20;
|
||||
mainProgram = "zxing";
|
||||
maintainers = [ lib.maintainers.raskin ];
|
||||
platforms = lib.platforms.linux;
|
||||
homepage = "https://github.com/zxing/zxing";
|
||||
};
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
java-zxing com.google.zxing.client.j2se.CommandLineEncoder "$@"
|
||||
@out@/bin/java-zxing com.google.zxing.client.j2se.CommandLineEncoder "$@"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
java-zxing com.google.zxing.client.j2se.CommandLineRunner "$@"
|
||||
@out@/bin/java-zxing com.google.zxing.client.j2se.CommandLineRunner "$@"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
@out@/bin/java-zxing com.google.zxing.client.j2se.GUIRunner "$@"
|
||||
@@ -1,18 +1,21 @@
|
||||
#! /bin/sh
|
||||
choice="$1";
|
||||
shift
|
||||
[ "$#" = "0" ] || shift;
|
||||
case "$choice" in
|
||||
encode | create | write | CommandLineEncoder)
|
||||
zxing-cmdline-encoder "$@";
|
||||
@out@/bin/zxing-cmdline-encoder "$@";
|
||||
;;
|
||||
decode | read | run | CommandLineRunner)
|
||||
zxing-cmdline-runner "$@";
|
||||
@out@/bin/zxing-cmdline-runner "$@";
|
||||
;;
|
||||
gui | GUIRunner)
|
||||
@out@/bin/zxing-gui-runner "$@";
|
||||
;;
|
||||
help | usage | --help | --usage | -h)
|
||||
zxing read;
|
||||
zxing write;
|
||||
@out@/bin/zxing read --help;
|
||||
@out@/bin/zxing write --help;
|
||||
;;
|
||||
*)
|
||||
zxing read "$choice" "$@"
|
||||
@out@/bin/zxing read "$choice" "$@";
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -12,10 +12,10 @@ buildDunePackage rec {
|
||||
version = "20231101";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thierry-martinez";
|
||||
owner = "ocamllibs";
|
||||
repo = "pyml";
|
||||
rev = version;
|
||||
sha256 = "sha256-0Yy5T/S3Npwt0XJmEsdXGg5AXYi9vV9UG9nMSzz/CEc=";
|
||||
tag = version;
|
||||
hash = "sha256-WPtmj9EEs7P72OXWJg1syIrbLuh7u4V4W4nyozXmSa0=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
@@ -38,7 +38,7 @@ buildDunePackage rec {
|
||||
|
||||
meta = {
|
||||
description = "OCaml bindings for Python";
|
||||
homepage = "https://github.com/thierry-martinez/pyml";
|
||||
homepage = "https://github.com/ocamllibs/pyml";
|
||||
license = lib.licenses.bsd2;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7,19 +7,20 @@
|
||||
lxml,
|
||||
httpx,
|
||||
h2,
|
||||
fake-useragent,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ddgs";
|
||||
version = "9.6.1";
|
||||
version = "9.10.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deedy5";
|
||||
repo = "ddgs";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-NaOwklHea3TUDa2M23X549IiX5zP87N9qWKkr5PObLY=";
|
||||
hash = "sha256-NNXGvDGynu6QtVqxVr74b/qehQ7qhq1NiVxyuKw2C4w=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -42,6 +43,7 @@ buildPythonPackage rec {
|
||||
lxml
|
||||
httpx
|
||||
h2
|
||||
fake-useragent
|
||||
]
|
||||
++ httpx.optional-dependencies.http2
|
||||
++ httpx.optional-dependencies.socks
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
diff --git a/ddgs/base.py b/ddgs/base.py
|
||||
index e964511..34d1c4f 100644
|
||||
index 11111acc7a..b71ee337d9 100644
|
||||
--- a/ddgs/base.py
|
||||
+++ b/ddgs/base.py
|
||||
@@ -11,7 +11,7 @@ from typing import Any, Generic, Literal, TypeVar
|
||||
@@ -9,7 +9,7 @@
|
||||
from lxml import html
|
||||
from lxml.etree import HTMLParser as LHTMLParser
|
||||
|
||||
@@ -12,10 +12,10 @@ index e964511..34d1c4f 100644
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
diff --git a/ddgs/cli.py b/ddgs/cli.py
|
||||
index d295f77..38adb71 100644
|
||||
index 36cf2f373c..7cf0b2f35d 100644
|
||||
--- a/ddgs/cli.py
|
||||
+++ b/ddgs/cli.py
|
||||
@@ -12,11 +12,11 @@ from typing import Any
|
||||
@@ -9,11 +9,11 @@
|
||||
from urllib.parse import unquote
|
||||
|
||||
import click
|
||||
@@ -23,17 +23,17 @@ index d295f77..38adb71 100644
|
||||
|
||||
from . import __version__
|
||||
from .ddgs import DDGS
|
||||
from .utils import _expand_proxy_tb_alias, json_dumps
|
||||
from .utils import _expand_proxy_tb_alias
|
||||
+from .http_client2 import HttpClient2
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -101,7 +101,7 @@ def _sanitize_query(query: str) -> str:
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
def _download_file(url: str, dir_path: str, filename: str, proxy: str | None, verify: bool) -> None:
|
||||
def _download_file(url: str, dir_path: str, filename: str, proxy: str | None, *, verify: bool) -> None:
|
||||
try:
|
||||
- resp = primp.Client(proxy=proxy, impersonate="random", impersonate_os="random", timeout=10, verify=verify).get(
|
||||
+ resp = HttpClient2(proxy=proxy, timeout=10, verify=verify).get(
|
||||
url
|
||||
url,
|
||||
)
|
||||
if resp.status_code == 200:
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pueblo";
|
||||
version = "0.0.12";
|
||||
version = "0.0.13";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
@@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||
# should work for us as well.
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-oo2RNJQUVDqxhfBI6h1KCAgsMjDe7ns3F9qD4eKLVic=";
|
||||
hash = "sha256-EewRittG90ZHRklGtXHtEJ83DWzA6f0iKfX87YlmVgY=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "temporalio";
|
||||
version = "1.20.0";
|
||||
version = "1.21.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@@ -35,7 +35,7 @@ buildPythonPackage rec {
|
||||
repo = "sdk-python";
|
||||
tag = version;
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-JScwBcVkl5kAxO4zKmt1ab6b1KlhGmPSjr7O0PRu0p8=";
|
||||
hash = "sha256-eOhaT5phQdHpaZB+TefJObAWgrO3vLgFkjH0XZW4rWU=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
@@ -45,7 +45,7 @@ buildPythonPackage rec {
|
||||
src
|
||||
cargoRoot
|
||||
;
|
||||
hash = "sha256-vhoXn4Aur4/VSwM2qVxOiWEI5/zAmep9ViQMGLln9PU=";
|
||||
hash = "sha256-d/mrBcItzKCQx27HyZ2q4f9r/XI0oXc+M7Hwfm98csc=";
|
||||
};
|
||||
|
||||
cargoRoot = "temporalio/bridge";
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "wassima";
|
||||
version = "2.0.2";
|
||||
version = "2.0.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jawah";
|
||||
repo = "wassima";
|
||||
tag = version;
|
||||
hash = "sha256-Ro0PWNJDjspEtVgA/Gj3UlqbRDCiqrk9nEqx1ljbvRI=";
|
||||
hash = "sha256-tkA6U0SqzivR4tHPu7BKawlqoYfkBFgt5ZcV9kOMKzI=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yalexs-ble";
|
||||
version = "3.2.2";
|
||||
version = "3.2.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = "yalexs-ble";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-p2S+OWUg4zMa3C6YXrtLMmy2O8rywuCiJsSzpf+ItsE=";
|
||||
hash = "sha256-BijvtiMAAP2lA43HFrGCt9qd7W2QBlzjfOCC8hhcu0k=";
|
||||
};
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ytmusicapi";
|
||||
version = "1.11.3";
|
||||
version = "1.11.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sigma67";
|
||||
repo = "ytmusicapi";
|
||||
tag = version;
|
||||
hash = "sha256-q0VVoKj0N9dvp57Qah4Aeba/JG29Wp8ptIuHz8AvLeM=";
|
||||
hash = "sha256-BumEdKosAe6A0K6Im8gVNMW89iljlvgbKSEo60/DpYg=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
@@ -73,7 +73,7 @@ let
|
||||
# pkgs.tree-sitter.withPlugins (p: [ p.tree-sitter-c p.tree-sitter-java ... ])
|
||||
#
|
||||
# or for all grammars:
|
||||
# pkgs.tree-sitter.withPlugins (_: allGrammars)
|
||||
# pkgs.tree-sitter.withPlugins (_: pkgs.tree-sitter.allGrammars)
|
||||
# which is equivalent to
|
||||
# pkgs.tree-sitter.withPlugins (p: builtins.attrValues p)
|
||||
withPlugins =
|
||||
@@ -98,7 +98,7 @@ let
|
||||
) grammars
|
||||
);
|
||||
|
||||
allGrammars = builtins.attrValues builtGrammars;
|
||||
allGrammars = lib.filter (p: !(p.meta.broken or false)) (lib.attrValues builtGrammars);
|
||||
|
||||
in
|
||||
rustPlatform.buildRustPackage (final: {
|
||||
|
||||
@@ -612,6 +612,7 @@ let
|
||||
|
||||
tests = {
|
||||
postgresql = nixosTests.postgresql.postgresql.passthru.override finalAttrs.finalPackage;
|
||||
postgresql-replication = nixosTests.postgresql.postgresql-replication.passthru.override finalAttrs.finalPackage;
|
||||
postgresql-tls-client-cert = nixosTests.postgresql.postgresql-tls-client-cert.passthru.override finalAttrs.finalPackage;
|
||||
postgresql-wal-receiver = nixosTests.postgresql.postgresql-wal-receiver.passthru.override finalAttrs.finalPackage;
|
||||
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
|
||||
@@ -9,8 +9,8 @@ stdenv.mkDerivation rec {
|
||||
version = "20200115";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://static.jonof.id.au/dl/kenutils/kzipmix-${version}-linux.tar.gz";
|
||||
sha256 = "sha256-ePgye0D6/ED53zx6xffLnYhkjed7SPU4BLOZQr9E3yA=";
|
||||
url = "https://www.jonof.id.au/files/kenutils/kzipmix-${version}-linux.tar.gz";
|
||||
hash = "sha256-ePgye0D6/ED53zx6xffLnYhkjed7SPU4BLOZQr9E3yA=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
||||
@@ -798,6 +798,7 @@ mapAliases {
|
||||
keepkey_agent = throw "'keepkey_agent' has been renamed to/replaced by 'keepkey-agent'"; # Converted to throw 2025-10-27
|
||||
keydb = throw "'keydb' has been removed as it was broken, vulnerable, and unmaintained upstream"; # Added 2025-11-08
|
||||
kgx = throw "'kgx' has been renamed to/replaced by 'gnome-console'"; # Converted to throw 2025-10-27
|
||||
khd = throw "'khd' has been removed as it has been pulled upstream"; # Added 2025-12-18
|
||||
khoj = throw "khoj has been removed because it has been marked as broken since at least November 2024."; # Added 2025-10-11
|
||||
kmplayer = throw "'kmplayer' has been removed, as it is unmaintained upstream"; # Added 2025-08-30
|
||||
knot-resolver = warnAlias "'knot-resolver' is currently aliased to 'knot-resolver_5'. This will change with the knot-resolver 6 being declared as stable. Please explicitly use the 'knot-resolver_5' or 'knot-resolver_6' package until then." knot-resolver_5; # Added 2025-11-30
|
||||
@@ -1205,6 +1206,7 @@ mapAliases {
|
||||
nuget-to-nix = throw "nuget-to-nix has been removed as it was deprecated in favor of nuget-to-json. Please use nuget-to-json instead"; # Added 2025-08-28
|
||||
nushellFull = throw "'nushellFull' has been renamed to/replaced by 'nushell'"; # Converted to throw 2025-10-27
|
||||
o = throw "'o' has been renamed to/replaced by 'orbiton'"; # Converted to throw 2025-10-27
|
||||
oam-tools = throw "'oam-tools' has been become part of amass"; # Added 2025-12-21
|
||||
oathToolkit = throw "'oathToolkit' has been renamed to/replaced by 'oath-toolkit'"; # Converted to throw 2025-10-27
|
||||
obb = throw "obb has been removed because it has been marked as broken since 2023."; # Added 2025-10-11
|
||||
obliv-c = throw "obliv-c has been removed from Nixpkgs, as it has been unmaintained upstream for 4 years and does not build with supported GCC versions"; # Added 2025-08-18
|
||||
|
||||
Reference in New Issue
Block a user