push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "pb";
version = "0.6.0";
src = fetchFromGitHub {
owner = "parseablehq";
repo = "pb";
tag = "v${finalAttrs.version}";
hash = "sha256-OXxLHi7v/xJZVvxHZvJ0eH4MYrlLFxDAMT9CVG2mWTM=";
};
vendorHash = "sha256-N6m0qvj65Ls3yQmVGw0AklsO1zs1KHdi/Y6FZRghnCs=";
ldflags = [
"-s"
"-w"
"-X main.Version=${finalAttrs.version}"
];
tags = [ "kqueue" ];
# Version test has been removed since it requires network access.
meta = {
homepage = "https://github.com/parseablehq/pb";
changelog = "https://github.com/parseablehq/pb/releases/tag/v${finalAttrs.version}";
description = "CLI client for Parseable server";
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ aaronjheng ];
mainProgram = "pb";
};
})

View File

@@ -0,0 +1,56 @@
{
screenshots ? true,
video ? false,
clipboard ? true,
lib,
stdenv,
jq,
curl,
fetchFromGitHub,
makeWrapper,
maim ? null,
xclip ? null,
capture ? null,
}:
assert screenshots -> maim != null;
assert video -> capture != null;
assert clipboard -> xclip != null;
stdenv.mkDerivation rec {
pname = "pb_cli-unstable";
version = "2019-03-10";
src = fetchFromGitHub {
owner = "ptpb";
repo = "pb_cli";
rev = "6b9ce1ee45fe651d06d7c479a20026a173dd328b";
sha256 = "0w6a789zffvz4ixsb92q45n5s4xyx7s2l2f07972i3dajaaai8z7";
};
nativeBuildInputs = [ makeWrapper ];
liveDeps = [
jq
curl
]
++ lib.optional screenshots maim
++ lib.optional video capture
++ lib.optional clipboard xclip;
installPhase = ''
install -Dm755 src/pb.sh $out/bin/pb
patchShebangs $out/bin/pb
wrapProgram $out/bin/pb \
--prefix PATH : '${lib.makeBinPath liveDeps}'
'';
meta = with lib; {
description = "No bullshit 0x0.st client";
homepage = "https://github.com/ptpb/pb_cli";
maintainers = [ maintainers.ar1a ];
license = licenses.gpl3Plus;
mainProgram = "pb";
};
}

View File

@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchurl,
gmp,
flex,
bison,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pbc";
version = "1.0.0";
src = fetchurl {
url = "https://crypto.stanford.edu/pbc/files/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
hash = "sha256-GCdaNnKDB3uv419EMgBJnjsZxKN1SVPaKhsvDWtZItw=";
};
outputs = [
"out"
"dev"
];
buildInputs = [
gmp
];
nativeBuildInputs = [
bison
flex
];
strictDeps = true;
env = {
LEX = "flex";
LEXLIB = "-lfl";
ac_cv_lib_fl_yywrap = "yes";
};
meta = {
description = "Pairing-based cryptography library by Stanford";
homepage = "https://crypto.stanford.edu/pbc/";
license = with lib.licenses; [
lgpl3Only
asl20
];
maintainers = with lib.maintainers; [ tphanir ];
platforms = lib.platforms.unix;
};
})

View File

@@ -0,0 +1,27 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "pbgopy";
version = "0.3.0";
src = fetchFromGitHub {
owner = "nakabonne";
repo = "pbgopy";
rev = "v${version}";
sha256 = "sha256-P/MFDFMsqSTVErTM9izJJSMIbiOcbQ9Ya10/w6NRcYw=";
};
vendorHash = "sha256-S2X74My6wyDZOsEYTDilCFaYgV2vQzU0jOAY9cEkJ6A=";
meta = with lib; {
description = "Copy and paste between devices";
mainProgram = "pbgopy";
homepage = "https://github.com/nakabonne/pbgopy";
license = licenses.mit;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,21 @@
{ buildDotnetGlobalTool, lib }:
buildDotnetGlobalTool {
pname = "pbm";
version = "1.4.5";
nugetHash = "sha256-iwacwYa1bB51Wp7PvrUclJ+Rdn0yzZa0EKcBwbpGSag=";
meta = with lib; {
description = "CLI for managing Akka.NET applications and Akka.NET Clusters";
homepage = "https://cmd.petabridge.com/index.html";
changelog = "https://cmd.petabridge.com/articles/RELEASE_NOTES.html";
license = licenses.unfree;
platforms = platforms.linux;
maintainers = with maintainers; [
anpin
mdarocha
];
mainProgram = "pbm";
};
}

View File

@@ -0,0 +1,43 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
dbus,
protobuf,
}:
rustPlatform.buildRustPackage rec {
pname = "pbpctrl";
version = "0.1.8";
src = fetchFromGitHub {
owner = "qzed";
repo = "pbpctrl";
rev = "v${version}";
hash = "sha256-XSRJytPrRKKWhFTBQd3Kd1R3amdecGNTmJS4PmFL6kg=";
};
cargoHash = "sha256-eDR/Z4v8G7/XPzWjJdZ5Fg2qULdn/SuNmvE/GVqSVJ8=";
nativeBuildInputs = [
pkg-config
protobuf
];
buildInputs = [ dbus ];
meta = with lib; {
description = "Control Google Pixel Buds Pro from the Linux command line";
homepage = "https://github.com/qzed/pbpctrl";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [
vanilla
cafkafk
];
platforms = platforms.linux;
mainProgram = "pbpctrl";
};
}

View File

@@ -0,0 +1,26 @@
diff -ur a/src/ext/openexr/CMakeLists.txt b/src/ext/openexr/CMakeLists.txt
--- a/src/ext/openexr/CMakeLists.txt 1970-01-01 09:00:01.000000000 +0900
+++ b/src/ext/openexr/CMakeLists.txt 2018-08-31 21:44:56.490714484 +0900
@@ -26,22 +26,4 @@
${CMAKE_CURRENT_BINARY_DIR}/IlmBase/config
)
-add_custom_target(CopyIlmBaseLibs
- COMMAND ${CMAKE_COMMAND} -E copy_directory
- ${CMAKE_CURRENT_BINARY_DIR}/IlmBase/Half/$<CONFIGURATION>
- ${CMAKE_CURRENT_BINARY_DIR}/OpenEXR/IlmImf/$<CONFIGURATION>
- COMMAND ${CMAKE_COMMAND} -E copy_directory
- ${CMAKE_CURRENT_BINARY_DIR}/IlmBase/IlmThread/$<CONFIGURATION>
- ${CMAKE_CURRENT_BINARY_DIR}/OpenEXR/IlmImf/$<CONFIGURATION>
- COMMAND ${CMAKE_COMMAND} -E copy_directory
- ${CMAKE_CURRENT_BINARY_DIR}/IlmBase/Iex/$<CONFIGURATION>
- ${CMAKE_CURRENT_BINARY_DIR}/OpenEXR/IlmImf/$<CONFIGURATION>
- COMMAND ${CMAKE_COMMAND} -E copy_directory
- ${CMAKE_CURRENT_BINARY_DIR}/IlmBase/Imath/$<CONFIGURATION>
- ${CMAKE_CURRENT_BINARY_DIR}/OpenEXR/IlmImf/$<CONFIGURATION>
-)
-add_dependencies(CopyIlmBaseLibs Iex Imath IlmThread Half)
-
add_subdirectory(OpenEXR OpenEXR)
-add_dependencies(b44ExpLogTable CopyIlmBaseLibs)
-add_dependencies(dwaLookups CopyIlmBaseLibs)

View File

@@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchFromGitHub,
flex,
bison,
cmake,
zlib,
}:
stdenv.mkDerivation {
version = "2018-08-15";
pname = "pbrt-v3";
src = fetchFromGitHub {
rev = "86b5821308088deea70b207bc8c22219d0103d65";
owner = "mmp";
repo = "pbrt-v3";
sha256 = "0f7ivsczba6zfk5f0bba1js6dcwf6w6jrkiby147qp1sx5k35cv8";
fetchSubmodules = true;
};
patches = [
# https://github.com/mmp/pbrt-v3/issues/196
./openexr-cmake-3.12.patch
];
nativeBuildInputs = [
flex
bison
cmake
];
buildInputs = [ zlib ];
meta = with lib; {
homepage = "https://pbrt.org/";
description = "Renderer described in the third edition of the book 'Physically Based Rendering: From Theory To Implementation'";
platforms = platforms.linux;
license = licenses.bsd2;
maintainers = [ maintainers.juliendehos ];
priority = 10;
};
}

View File

@@ -0,0 +1,53 @@
{
lib,
stdenv,
fetchurl,
fetchpatch,
bzip2,
}:
let
major = "1.1";
version = "${major}.13";
in
stdenv.mkDerivation rec {
pname = "pbzip2";
inherit version;
src = fetchurl {
url = "https://launchpad.net/pbzip2/${major}/${version}/+download/${pname}-${version}.tar.gz";
sha256 = "1rnvgcdixjzbrmcr1nv9b6ccrjfrhryaj7jwz28yxxv6lam3xlcg";
};
patches = [
# https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals
# https://bugs.launchpad.net/pbzip2/+bug/2081588
(fetchpatch {
url = "https://github.com/freebsd/freebsd-ports/raw/974d3ff054965d2bd2ab884a0579ed06c5a08b07/archivers/pbzip2/files/patch-BZ2StreamScanner.cpp";
extraPrefix = "";
hash = "sha256-dvXdp+5S41akavy+mvPGHpUxHxenXS7bbTVBVkIJj0s=";
})
(fetchpatch {
url = "https://github.com/freebsd/freebsd-ports/raw/974d3ff054965d2bd2ab884a0579ed06c5a08b07/archivers/pbzip2/files/patch-BZ2StreamScanner.h";
extraPrefix = "";
hash = "sha256-/twP8HyHP4cAVgb5cUPq0CgDxUgDYPdd9haH9wDOrz8=";
})
];
postPatch = ''
substituteInPlace pbzip2.cpp \
--replace-fail '"PRIuMAX"' '" PRIuMAX "'
'';
buildInputs = [ bzip2 ];
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
homepage = "http://compression.ca/pbzip2/";
description = "Parallel implementation of bzip2 for multi-core machines";
license = licenses.bsd2;
maintainers = [ ];
platforms = platforms.unix;
};
}

View File

@@ -0,0 +1,37 @@
{
stdenv,
lib,
fetchFromGitHub,
xz,
xar,
}:
stdenv.mkDerivation rec {
pname = "pbzx";
version = "1.0.2";
src = fetchFromGitHub {
owner = "NiklasRosenstein";
repo = "pbzx";
rev = "v${version}";
sha256 = "0bwd7wmnhpz1n5p39mh6asfyccj4cm06hwigslcwbb3pdwmvxc90";
};
patches = [ ./stdin.patch ];
buildInputs = [
xz
xar
];
buildPhase = ''
${stdenv.cc.targetPrefix}cc pbzx.c -llzma -lxar -o pbzx
'';
installPhase = ''
mkdir -p $out/bin
cp pbzx $out/bin
'';
meta = with lib; {
description = "Stream parser of Apple's pbzx compression format";
platforms = platforms.unix;
license = licenses.gpl3;
maintainers = [ maintainers.matthewbauer ];
mainProgram = "pbzx";
};
}

View File

@@ -0,0 +1,53 @@
C standard defines `stdin` as a macro so we cant use it as an
identifier. See also
https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20130506/173524.html
--- a/pbzx.c
+++ b/pbzx.c
@@ -34,7 +34,7 @@
/* Structure to hold the command-line options. */
struct options {
- bool stdin; /* True if data should be read from stdin. */
+ bool usestdin; /* True if data should be read from stdin. */
bool noxar; /* The input data is not a XAR archive but the pbzx Payload. */
bool help; /* Print usage with details and exit. */
bool version; /* Print version and exit. */
@@ -74,7 +74,7 @@
/* Skip arguments that are not flags. */
if (argv[i][0] != '-') continue;
/* Match available arguments. */
- if (strcmp(argv[i], "-") == 0) opts->stdin = true;
+ if (strcmp(argv[i], "-") == 0) opts->usestdin = true;
else if (strcmp(argv[i], "-n") == 0) opts->noxar = true;
else if (strcmp(argv[i], "-h") == 0) opts->help = true;
else if (strcmp(argv[i], "-v") == 0) opts->version = true;
@@ -204,9 +204,9 @@
parse_args(&argc, argv, &opts);
if (opts.version) version();
if (opts.help) usage(NULL);
- if (!opts.stdin && argc < 2)
+ if (!opts.usestdin && argc < 2)
usage("missing filename argument");
- else if ((!opts.stdin && argc > 2) || (opts.stdin && argc > 1))
+ else if ((!opts.usestdin && argc > 2) || (opts.usestdin && argc > 1))
usage("unhandled positional argument(s)");
char const* filename = NULL;
@@ -216,7 +216,7 @@
struct stream stream;
stream_init(&stream);
bool success = false;
- if (opts.stdin) {
+ if (opts.usestdin) {
stream.type = STREAM_FP;
stream.fp = stdin;
success = true;
@@ -291,6 +291,6 @@
}
free(zbuf);
lzma_end(&zs);
- if (!opts.stdin) stream_close(&stream);
+ if (!opts.usestdin) stream_close(&stream);
return 0;
}