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,33 @@
{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation {
version = "unstable-2018-10-18";
pname = "ps2client";
src = fetchFromGitHub {
owner = "ps2dev";
repo = "ps2client";
rev = "92fcaf18aabf74daaed40bd50d428cce326a87c0";
sha256 = "1rlmns44pxm6dkh6d3cz9sw8v7pvi53r7r5r3kgwdzkhixjj0cdg";
};
patchPhase = ''
sed -i -e "s|-I/usr/include||g" -e "s|-I/usr/local/include||g" Makefile
'';
installPhase = ''
make PREFIX=$out install
'';
meta = with lib; {
description = "Desktop clients to interact with ps2link and ps2netfs";
homepage = "https://github.com/ps2dev/ps2client";
license = licenses.bsd3;
maintainers = [ ];
platforms = platforms.unix;
};
}

View File

@@ -0,0 +1,26 @@
diff --git i/src/perl/ps2eps w/src/perl/ps2eps
index 1122a81..31d6a9a 100755
--- i/src/perl/ps2eps
+++ w/src/perl/ps2eps
@@ -43,19 +43,13 @@ Getopt::Long::Configure("no_ignore_case");
$prgname= "ps2eps";
-if (! -d "/usr/bin")
-{ # we assume that we are running under native windows
- $ghostscriptname = "gswin32c";
- $NULLDEV = "nul";
-}
-else
{ # Unix or cygwin
- $ghostscriptname = "gs";
+ $ghostscriptname = "@gs@";
$NULLDEV = "/dev/null 2>&1";
}
$bboxver=`bbox >$NULLDEV -V`;
-$bboxname= ($?== -1) ? "" : "bbox";
+$bboxname= ($?== -1) ? "" : "@bbox@";
$version= '$Id: ps2eps,v 1.70 2018-01-09 18:00:00 bless Exp $'; #'
$insertPScode= 1; # Insert surrounding Postscript code
$infhandle = STDIN; # Standard input is the default input file

View File

@@ -0,0 +1,71 @@
{
lib,
fetchFromGitHub,
perlPackages,
replaceVars,
ghostscript,
installShellFiles,
}:
perlPackages.buildPerlPackage rec {
pname = "ps2eps";
version = "1.70";
src = fetchFromGitHub {
owner = "roland-bless";
repo = "ps2eps";
rev = "v${version}";
hash = "sha256-SPLwsGKLVhANoqSQ/GJ938cYjbjMbUOXkNn9so3aJTA=";
};
patches = [
(replaceVars ./hardcode-deps.patch {
gs = "${ghostscript}/bin/gs";
# bbox cannot be substituted here because replaceVars doesn't know what
# will be the $out path of the main derivation
bbox = null;
})
];
nativeBuildInputs = [
installShellFiles
];
configurePhase = "true";
buildPhase = ''
runHook preBuild
make -C src/C bbox
patchShebangs src/perl/ps2eps
substituteInPlace src/perl/ps2eps \
--replace @bbox@ $out/bin/bbox
runHook postBuild
'';
# Override buildPerlPackage's outputs setting
outputs = [
"out"
"man"
];
installPhase = ''
runHook preInstall
installManPage \
doc/ps2eps.1 \
doc/bbox.1
install -D src/perl/ps2eps $out/bin/ps2eps
install -D src/C/bbox $out/bin/bbox
runHook postInstall
'';
meta = with lib; {
inherit (src.meta) homepage;
description = "Calculate correct bounding boxes for PostScript and PDF files";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = [ maintainers.doronbehar ];
};
}

1
pkgs/by-name/ps/ps2patchelf/deps.json generated Normal file
View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,40 @@
{
fetchFromGitHub,
buildDotnetModule,
dotnetCorePackages,
lib,
}:
buildDotnetModule rec {
version = "1.0.0";
pname = "PS2PatchElf";
src = fetchFromGitHub {
owner = "CaptainSwag101";
repo = "PS2PatchElf";
tag = "v${version}";
hash = "sha256-iQL3tT71UOEFIYBdf9BNLUM4++Fm9qEhr77NkMCZdrU=";
};
patches = [
./patches/target_net8.0.patch
./patches/fix_arg_check.patch
];
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
dotnetFlags = [ "-p:TargetFramework=net8.0" ];
nugetDeps = ./deps.json;
projectFile = "PS2PatchElf/PS2PatchElf.csproj";
meta = {
homepage = "https://github.com/CaptainSwag101/PS2PatchElf/";
description = "Very basic tool for converting PCSX2 .pnach cheats to game executable patches";
maintainers = [ lib.maintainers.gigahawk ];
mainProgram = "PS2PatchElf";
license = lib.licenses.mit;
};
}

View File

@@ -0,0 +1,14 @@
diff --git a/PS2PatchElf/Program.cs b/PS2PatchElf/Program.cs
index 8c0f1b4..78f4042 100644
--- a/PS2PatchElf/Program.cs
+++ b/PS2PatchElf/Program.cs
@@ -9,7 +9,7 @@ namespace PS2PatchElf
{
static void Main(string[] args)
{
- if (args.Length is not 2 or 3)
+ if (args.Length != 2 && args.Length != 3)
{
Console.WriteLine("Improper number of arguments specified.\nPlease pass an input ELF/SLUS, a PNACH file, and optionally the patched ELF/SLUS's output path, in that order!");
return;

View File

@@ -0,0 +1,26 @@
diff --git a/PS2PatchElf/PS2PatchElf.csproj b/PS2PatchElf/PS2PatchElf.csproj
index 3bfd30f..bb0c835 100644
--- a/PS2PatchElf/PS2PatchElf.csproj
+++ b/PS2PatchElf/PS2PatchElf.csproj
@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>
diff --git a/PS2PatchLib/PS2PatchLib.csproj b/PS2PatchLib/PS2PatchLib.csproj
index 4de8048..8d2b232 100644
--- a/PS2PatchLib/PS2PatchLib.csproj
+++ b/PS2PatchLib/PS2PatchLib.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

492
pkgs/by-name/ps/ps3-disc-dumper/deps.json generated Normal file
View File

@@ -0,0 +1,492 @@
[
{
"pname": "Avalonia",
"version": "11.3.1",
"hash": "sha256-732wl4/JmvYFS26NLvPD7T/V3J3JZUDy6Xwj5p1TNyE="
},
{
"pname": "Avalonia.Angle.Windows.Natives",
"version": "2.1.25547.20250602",
"hash": "sha256-LE/lENAHptmz6t3T/AoJwnhpda+xs7PqriNGzdcfg8M="
},
{
"pname": "Avalonia.BuildServices",
"version": "0.0.31",
"hash": "sha256-wgtodGf644CsUZEBIpFKcUjYHTbnu7mZmlr8uHIxeKA="
},
{
"pname": "Avalonia.Desktop",
"version": "11.3.1",
"hash": "sha256-H6SLCi3by9bFF1YR12PnNZSmtC44UQPKr+5+8LvqC90="
},
{
"pname": "Avalonia.Fonts.Inter",
"version": "11.3.1",
"hash": "sha256-LfNYF+SywrIzUw4T+GRE/Mr8E7GQskQQTTfK3Kc5YVQ="
},
{
"pname": "Avalonia.FreeDesktop",
"version": "11.3.1",
"hash": "sha256-Iph1SQazNNr9liox0LR7ITidAEEWhp8Mg9Zn4MZVkRQ="
},
{
"pname": "Avalonia.Native",
"version": "11.3.1",
"hash": "sha256-jNzqmHm58bbPGs/ogp6gFvinbN81Psg+sg+Z5UsbcDs="
},
{
"pname": "Avalonia.Remote.Protocol",
"version": "11.3.1",
"hash": "sha256-evkhJOxKjsR+jNLrXRcrhqjFdlrxYMMMRBJ6FK08vMM="
},
{
"pname": "Avalonia.Skia",
"version": "11.3.1",
"hash": "sha256-zN09CcuSqtLcQrTCQOoPJrhLd4LioZqt/Qi4sDp/cJI="
},
{
"pname": "Avalonia.Themes.Fluent",
"version": "11.3.1",
"hash": "sha256-PApWHwIoLzbzrnyXJQLVy85Rbxag7NFEKMXOs2iVVaA="
},
{
"pname": "Avalonia.Win32",
"version": "11.3.1",
"hash": "sha256-w3+8luJByeIchiVQ0wsq0olDabX/DndigyBEuK8Ty04="
},
{
"pname": "Avalonia.X11",
"version": "11.3.1",
"hash": "sha256-0iUFrDM+10T3OiOeGSEiqQ6EzEucQL3shZUNqOiqkyQ="
},
{
"pname": "CommunityToolkit.Mvvm",
"version": "8.4.0",
"hash": "sha256-a0D550q+ffreU9Z+kQPdzJYPNaj1UjgyPofLzUg02ZI="
},
{
"pname": "HarfBuzzSharp",
"version": "8.3.1.1",
"hash": "sha256-614yv6bK9ynhdUnvW4wIkgpBe2sqTh28U9cDZzdhPc0="
},
{
"pname": "HarfBuzzSharp.NativeAssets.Linux",
"version": "8.3.1.1",
"hash": "sha256-sBbez6fc9axVcsBbIHbpQh/MM5NHlMJgSu6FyuZzVyU="
},
{
"pname": "HarfBuzzSharp.NativeAssets.macOS",
"version": "8.3.1.1",
"hash": "sha256-hK20KbX2OpewIO5qG5gWw5Ih6GoLcIDgFOqCJIjXR/Q="
},
{
"pname": "HarfBuzzSharp.NativeAssets.WebAssembly",
"version": "8.3.1.1",
"hash": "sha256-mLKoLqI47ZHXqTMLwP1UCm7faDptUfQukNvdq6w/xxw="
},
{
"pname": "HarfBuzzSharp.NativeAssets.Win32",
"version": "8.3.1.1",
"hash": "sha256-Um4iwLdz9XtaDSAsthNZdev6dMiy7OBoHOrorMrMYyo="
},
{
"pname": "LTRData.DiscUtils.Core",
"version": "1.0.57",
"hash": "sha256-W3MWde/i+/AjEnVrddhcBiuyHmujVAxq+NpJudgoIpc="
},
{
"pname": "LTRData.DiscUtils.Iso9660",
"version": "1.0.57",
"hash": "sha256-h1LEAyKcrLB/QY77HH2eLAPtdFQccVeycwkVPr7x9/U="
},
{
"pname": "LTRData.DiscUtils.OpticalDisk",
"version": "1.0.57",
"hash": "sha256-SD26HhU4622oUBWU+iK2yTj025RQh+P8ZJybJsZyUSs="
},
{
"pname": "LTRData.DiscUtils.Streams",
"version": "1.0.57",
"hash": "sha256-00o7vHJGU0yNzFp9FlKBH+gCHVie4VBcx2PnTdW5XZQ="
},
{
"pname": "LTRData.DiscUtils.Udf",
"version": "1.0.57",
"hash": "sha256-HHCfCaW7SUpOiYBXARnXeAq0yKfPLudVL8HwLrmhL0g="
},
{
"pname": "LTRData.Extensions",
"version": "1.0.18",
"hash": "sha256-BUmv97cIUDNtjPj7IKW1iZHhqx9iyidb4xwAGXbRyvM="
},
{
"pname": "MicroCom.Runtime",
"version": "0.11.0",
"hash": "sha256-VdwpP5fsclvNqJuppaOvwEwv2ofnAI5ZSz2V+UEdLF0="
},
{
"pname": "Microsoft.AspNet.WebApi.Client",
"version": "6.0.0",
"hash": "sha256-lNL5C4W7/p8homWooO/3ZKDZQ2M0FUTDixJwqWBPVbo="
},
{
"pname": "Microsoft.Bcl.HashCode",
"version": "6.0.0",
"hash": "sha256-87myurC/jMcX1f32167j7FTjbZ6FvUE0esrhYTGcvWs="
},
{
"pname": "Microsoft.NETCore.Platforms",
"version": "1.1.0",
"hash": "sha256-FeM40ktcObQJk4nMYShB61H/E8B7tIKfl9ObJ0IOcCM="
},
{
"pname": "Microsoft.NETCore.Targets",
"version": "1.1.0",
"hash": "sha256-0AqQ2gMS8iNlYkrD+BxtIg7cXMnr9xZHtKAuN4bjfaQ="
},
{
"pname": "Newtonsoft.Json",
"version": "12.0.1",
"hash": "sha256-4Xf3RZrJomAh3jaZrEAJX3oPmOowGV8yDB9Y3h0Dw4U="
},
{
"pname": "Newtonsoft.Json",
"version": "13.0.1",
"hash": "sha256-K2tSVW4n4beRPzPu3rlVaBEMdGvWSv/3Q1fxaDh4Mjo="
},
{
"pname": "Newtonsoft.Json.Bson",
"version": "1.0.2",
"hash": "sha256-ZUj6YFSMZp5CZtXiamw49eZmbp1iYBuNsIKNnjxcRzA="
},
{
"pname": "runtime.any.System.Collections",
"version": "4.3.0",
"hash": "sha256-4PGZqyWhZ6/HCTF2KddDsbmTTjxs2oW79YfkberDZS8="
},
{
"pname": "runtime.any.System.Diagnostics.Tracing",
"version": "4.3.0",
"hash": "sha256-dsmTLGvt8HqRkDWP8iKVXJCS+akAzENGXKPV18W2RgI="
},
{
"pname": "runtime.any.System.Globalization",
"version": "4.3.0",
"hash": "sha256-PaiITTFI2FfPylTEk7DwzfKeiA/g/aooSU1pDcdwWLU="
},
{
"pname": "runtime.any.System.IO",
"version": "4.3.0",
"hash": "sha256-vej7ySRhyvM3pYh/ITMdC25ivSd0WLZAaIQbYj/6HVE="
},
{
"pname": "runtime.any.System.Reflection",
"version": "4.3.0",
"hash": "sha256-ns6f++lSA+bi1xXgmW1JkWFb2NaMD+w+YNTfMvyAiQk="
},
{
"pname": "runtime.any.System.Reflection.Primitives",
"version": "4.3.0",
"hash": "sha256-LkPXtiDQM3BcdYkAm5uSNOiz3uF4J45qpxn5aBiqNXQ="
},
{
"pname": "runtime.any.System.Resources.ResourceManager",
"version": "4.3.0",
"hash": "sha256-9EvnmZslLgLLhJ00o5MWaPuJQlbUFcUF8itGQNVkcQ4="
},
{
"pname": "runtime.any.System.Runtime",
"version": "4.3.0",
"hash": "sha256-qwhNXBaJ1DtDkuRacgHwnZmOZ1u9q7N8j0cWOLYOELM="
},
{
"pname": "runtime.any.System.Runtime.Handles",
"version": "4.3.0",
"hash": "sha256-PQRACwnSUuxgVySO1840KvqCC9F8iI9iTzxNW0RcBS4="
},
{
"pname": "runtime.any.System.Runtime.InteropServices",
"version": "4.3.0",
"hash": "sha256-Kaw5PnLYIiqWbsoF3VKJhy7pkpoGsUwn4ZDCKscbbzA="
},
{
"pname": "runtime.any.System.Text.Encoding",
"version": "4.3.0",
"hash": "sha256-Q18B9q26MkWZx68exUfQT30+0PGmpFlDgaF0TnaIGCs="
},
{
"pname": "runtime.any.System.Threading.Tasks",
"version": "4.3.0",
"hash": "sha256-agdOM0NXupfHbKAQzQT8XgbI9B8hVEh+a/2vqeHctg4="
},
{
"pname": "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-EbnOqPOrAgI9eNheXLR++VnY4pHzMsEKw1dFPJ/Fl2c="
},
{
"pname": "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-mVg02TNvJc1BuHU03q3fH3M6cMgkKaQPBxraSHl/Btg="
},
{
"pname": "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-g9Uiikrl+M40hYe0JMlGHe/lrR0+nN05YF64wzLmBBA="
},
{
"pname": "runtime.native.System",
"version": "4.3.0",
"hash": "sha256-ZBZaodnjvLXATWpXXakFgcy6P+gjhshFXmglrL5xD5Y="
},
{
"pname": "runtime.native.System.Security.Cryptography.Apple",
"version": "4.3.1",
"hash": "sha256-Mt2QAjNH5nKnwpbyoUe2O+En97CP84EQFoS3CkmYXAM="
},
{
"pname": "runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.0",
"hash": "sha256-Jy01KhtcCl2wjMpZWH+X3fhHcVn+SyllWFY8zWlz/6I="
},
{
"pname": "runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-xqF6LbbtpzNC9n1Ua16PnYgXHU0LvblEROTfK4vIxX8="
},
{
"pname": "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-aJBu6Frcg6webvzVcKNoUP1b462OAqReF2giTSyBzCQ="
},
{
"pname": "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-Mpt7KN2Kq51QYOEVesEjhWcCGTqWckuPf8HlQ110qLY="
},
{
"pname": "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple",
"version": "4.3.1",
"hash": "sha256-J5RHzSIfUs001NsY82+ZXn0ZIqux+aLvY7uDuXjRd8U="
},
{
"pname": "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-JvMltmfVC53mCZtKDHE69G3RT6Id28hnskntP9MMP9U="
},
{
"pname": "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-QfFxWTVRNBhN4Dm1XRbCf+soNQpy81PsZed3x6op/bI="
},
{
"pname": "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-EaJHVc9aDZ6F7ltM2JwlIuiJvqM67CKRq682iVSo+pU="
},
{
"pname": "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-PHR0+6rIjJswn89eoiWYY1DuU8u6xRJLrtjykAMuFmA="
},
{
"pname": "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl",
"version": "4.3.2",
"hash": "sha256-LFkh7ua7R4rI5w2KGjcHlGXLecsncCy6kDXLuy4qD/Q="
},
{
"pname": "runtime.unix.System.Diagnostics.Debug",
"version": "4.3.0",
"hash": "sha256-ReoazscfbGH+R6s6jkg5sIEHWNEvjEoHtIsMbpc7+tI="
},
{
"pname": "runtime.unix.System.Private.Uri",
"version": "4.3.0",
"hash": "sha256-c5tXWhE/fYbJVl9rXs0uHh3pTsg44YD1dJvyOA0WoMs="
},
{
"pname": "runtime.unix.System.Runtime.Extensions",
"version": "4.3.0",
"hash": "sha256-l8S9gt6dk3qYG6HYonHtdlYtBKyPb29uQ6NDjmrt3V4="
},
{
"pname": "SkiaSharp",
"version": "2.88.9",
"hash": "sha256-jZ/4nVXYJtrz9SBf6sYc/s0FxS7ReIYM4kMkrhZS+24="
},
{
"pname": "SkiaSharp.NativeAssets.Linux",
"version": "2.88.9",
"hash": "sha256-mQ/oBaqRR71WfS66mJCvcc3uKW7CNEHoPN2JilDbw/A="
},
{
"pname": "SkiaSharp.NativeAssets.macOS",
"version": "2.88.9",
"hash": "sha256-qvGuAmjXGjGKMzOPBvP9VWRVOICSGb7aNVejU0lLe/g="
},
{
"pname": "SkiaSharp.NativeAssets.WebAssembly",
"version": "2.88.9",
"hash": "sha256-vgFL4Pdy3O1RKBp+T9N3W4nkH9yurZ0suo8u3gPmmhY="
},
{
"pname": "SkiaSharp.NativeAssets.Win32",
"version": "2.88.9",
"hash": "sha256-kP5XM5GgwHGfNJfe4T2yO5NIZtiF71Ddp0pd1vG5V/4="
},
{
"pname": "System.Collections",
"version": "4.3.0",
"hash": "sha256-afY7VUtD6w/5mYqrce8kQrvDIfS2GXDINDh73IjxJKc="
},
{
"pname": "System.Collections.Concurrent",
"version": "4.3.0",
"hash": "sha256-KMY5DfJnDeIsa13DpqvyN8NkReZEMAFnlmNglVoFIXI="
},
{
"pname": "System.Diagnostics.Debug",
"version": "4.3.0",
"hash": "sha256-fkA79SjPbSeiEcrbbUsb70u9B7wqbsdM9s1LnoKj0gM="
},
{
"pname": "System.Diagnostics.Tracing",
"version": "4.3.0",
"hash": "sha256-hCETZpHHGVhPYvb4C0fh4zs+8zv4GPoixagkLZjpa9Q="
},
{
"pname": "System.Globalization",
"version": "4.3.0",
"hash": "sha256-caL0pRmFSEsaoeZeWN5BTQtGrAtaQPwFi8YOZPZG5rI="
},
{
"pname": "System.IO",
"version": "4.3.0",
"hash": "sha256-ruynQHekFP5wPrDiVyhNiRIXeZ/I9NpjK5pU+HPDiRY="
},
{
"pname": "System.IO.Hashing",
"version": "9.0.6",
"hash": "sha256-QhOlqpeQsqJ2Lly8xV0lzSaNBmkGPEgtyTe9xSvkyAw="
},
{
"pname": "System.IO.Pipelines",
"version": "8.0.0",
"hash": "sha256-LdpB1s4vQzsOODaxiKstLks57X9DTD5D6cPx8DE1wwE="
},
{
"pname": "System.Linq",
"version": "4.3.0",
"hash": "sha256-R5uiSL3l6a3XrXSSL6jz+q/PcyVQzEAByiuXZNSqD/A="
},
{
"pname": "System.Memory",
"version": "4.5.5",
"hash": "sha256-EPQ9o1Kin7KzGI5O3U3PUQAZTItSbk9h/i4rViN3WiI="
},
{
"pname": "System.Memory",
"version": "4.6.3",
"hash": "sha256-JgeK63WMmumF6L+FH5cwJgYdpqXrSDcgTQwtIgTHKVU="
},
{
"pname": "System.Private.Uri",
"version": "4.3.0",
"hash": "sha256-fVfgcoP4AVN1E5wHZbKBIOPYZ/xBeSIdsNF+bdukIRM="
},
{
"pname": "System.Reflection",
"version": "4.3.0",
"hash": "sha256-NQSZRpZLvtPWDlvmMIdGxcVuyUnw92ZURo0hXsEshXY="
},
{
"pname": "System.Reflection.Primitives",
"version": "4.3.0",
"hash": "sha256-5ogwWB4vlQTl3jjk1xjniG2ozbFIjZTL9ug0usZQuBM="
},
{
"pname": "System.Resources.ResourceManager",
"version": "4.3.0",
"hash": "sha256-idiOD93xbbrbwwSnD4mORA9RYi/D/U48eRUsn/WnWGo="
},
{
"pname": "System.Runtime",
"version": "4.3.0",
"hash": "sha256-51813WXpBIsuA6fUtE5XaRQjcWdQ2/lmEokJt97u0Rg="
},
{
"pname": "System.Runtime.Extensions",
"version": "4.3.0",
"hash": "sha256-wLDHmozr84v1W2zYCWYxxj0FR0JDYHSVRaRuDm0bd/o="
},
{
"pname": "System.Runtime.Handles",
"version": "4.3.0",
"hash": "sha256-KJ5aXoGpB56Y6+iepBkdpx/AfaJDAitx4vrkLqR7gms="
},
{
"pname": "System.Runtime.InteropServices",
"version": "4.3.0",
"hash": "sha256-8sDH+WUJfCR+7e4nfpftj/+lstEiZixWUBueR2zmHgI="
},
{
"pname": "System.Runtime.Numerics",
"version": "4.3.0",
"hash": "sha256-P5jHCgMbgFMYiONvzmaKFeOqcAIDPu/U8bOVrNPYKqc="
},
{
"pname": "System.Security.Cryptography.Algorithms",
"version": "4.3.1",
"hash": "sha256-QlO/ppRk/OyDYHCimD867RAlKIOakidD0ICNOt63XNQ="
},
{
"pname": "System.Security.Cryptography.Encoding",
"version": "4.3.0",
"hash": "sha256-Yuge89N6M+NcblcvXMeyHZ6kZDfwBv3LPMDiF8HhJss="
},
{
"pname": "System.Security.Cryptography.Primitives",
"version": "4.3.0",
"hash": "sha256-fnFi7B3SnVj5a+BbgXnbjnGNvWrCEU6Hp/wjsjWz318="
},
{
"pname": "System.Text.Encoding",
"version": "4.3.0",
"hash": "sha256-GctHVGLZAa/rqkBNhsBGnsiWdKyv6VDubYpGkuOkBLg="
},
{
"pname": "System.Text.Encoding.CodePages",
"version": "9.0.5",
"hash": "sha256-trMfhFwGMnM60+UUqud7gFLL2YF5pCdhleKSonkkd84="
},
{
"pname": "System.Threading",
"version": "4.3.0",
"hash": "sha256-ZDQ3dR4pzVwmaqBg4hacZaVenQ/3yAF/uV7BXZXjiWc="
},
{
"pname": "System.Threading.Tasks",
"version": "4.3.0",
"hash": "sha256-Z5rXfJ1EXp3G32IKZGiZ6koMjRu0n8C1NGrwpdIen4w="
},
{
"pname": "System.Threading.Tasks.Extensions",
"version": "4.5.4",
"hash": "sha256-owSpY8wHlsUXn5xrfYAiu847L6fAKethlvYx97Ri1ng="
},
{
"pname": "System.Threading.Tasks.Extensions",
"version": "4.6.3",
"hash": "sha256-GrySx1F6Ah6tfnnQt/PHC+dbzg+sfP47OOFX0yJF/xo="
},
{
"pname": "Tmds.DBus.Protocol",
"version": "0.21.2",
"hash": "sha256-gaK/5aAummyin6ptnhaJbnA0ih4+2xADrtrLfFbHwYI="
},
{
"pname": "WmiLight",
"version": "6.14.0",
"hash": "sha256-MmfXmWsLonyTKNXqmszFbvyaDjPexgH5UoCGI8h2JlA="
}
]

View File

@@ -0,0 +1,48 @@
{
lib,
buildDotnetModule,
fetchFromGitHub,
zlib,
openssl,
dotnetCorePackages,
nix-update-script,
}:
buildDotnetModule rec {
pname = "ps3-disc-dumper";
version = "4.3.9";
src = fetchFromGitHub {
owner = "13xforever";
repo = "ps3-disc-dumper";
tag = "v${version}";
hash = "sha256-F+FyCuxzg7oTF2iRxWygXeGnspHrZ3Za8HhCSKNgoR4=";
};
dotnet-sdk = dotnetCorePackages.sdk_9_0;
dotnet-runtime = dotnetCorePackages.sdk_9_0;
dotnetFlags = [ "-p:TargetFramework=net9.0" ];
dotnetRestoreFlags = [ "-p:Configuration=${buildType}" ];
buildType = "Linux";
projectFile = "UI.Avalonia/UI.Avalonia.csproj";
nugetDeps = ./deps.json;
runtimeDeps = [
zlib
openssl
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Handy utility to make decrypted PS3 disc dumps";
homepage = "https://github.com/13xforever/ps3-disc-dumper";
license = lib.licenses.mit;
mainProgram = "ps3-disc-dumper";
maintainers = with lib.maintainers; [
evanjs
gepbird
];
platforms = [ "x86_64-linux" ];
};
}

View File

@@ -0,0 +1,38 @@
{
stdenv,
fetchFromGitHub,
unstableGitUpdater,
lib,
}:
stdenv.mkDerivation {
pname = "ps3iso-utils";
version = "277db7de";
src = fetchFromGitHub {
owner = "bucanero";
repo = "ps3iso-utils";
rev = "878090980a9042c61901920fed1b034af215e8c7";
hash = "sha256-HUx5BqHBvVMUHReuJL0RcyxXOnufSt1Zi/ieAlI2eoc=";
};
buildPhase = ''
mkdir -p bin/
find . -type f -name "*.c" -exec \
sh -c 'OFILE=`basename "{}" ".c"` && $CC "{}" -o bin/"$OFILE"' \;
'';
installPhase = ''
mkdir -p $out/bin
cp bin/* $out/bin
'';
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "Estwald's PS3ISO utilities";
homepage = "https://github.com/bucanero/ps3iso-utils";
license = licenses.gpl3Only;
maintainers = with maintainers; [ soupglasses ];
platforms = platforms.all;
};
}

View File

@@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchzip,
mbedtls,
meson,
ninja,
}:
let
webManModVersion = "1.47.42";
in
stdenv.mkDerivation rec {
pname = "ps3netsrv";
version = "20220813";
src = fetchzip {
url = "https://github.com/aldostools/webMAN-MOD/releases/download/${webManModVersion}/${pname}_${version}.zip";
hash = "sha256-ynFuCD+tp8E/DDdB/HU9BCmwKcmQy6NBx26MKnP4W0o=";
};
sourceRoot = "${src.name}/${pname}";
buildInputs = [
meson
ninja
mbedtls
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Doff64_t=off_t";
postInstall = ''
install -Dm644 ../LICENSE.TXT $out/usr/share/licenses/${pname}/LICENSE.TXT
'';
meta = {
description = "PS3 Net Server (mod by aldostools)";
homepage = "https://github.com/aldostools/webMAN-MOD/";
license = lib.licenses.gpl3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ makefu ];
mainProgram = "ps3netsrv";
};
}

View File

@@ -0,0 +1,31 @@
{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "ps_mem";
version = "3.14";
pyproject = true;
src = fetchFromGitHub {
owner = "pixelb";
repo = "ps_mem";
rev = "v${version}";
hash = "sha256-jCfPtPSky/QFk9Xo/tq3W7609Pie1yLC4iS4dqjCa+E=";
};
build-system = with python3Packages; [ setuptools ];
pythonImportsCheck = [ "ps_mem" ];
meta = {
description = "Utility to accurately report the in core memory usage for a program";
homepage = "https://github.com/pixelb/ps_mem";
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ sigmanificient ];
platforms = lib.platforms.linux;
mainProgram = "ps_mem";
};
}

View File

@@ -0,0 +1,44 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
bash,
iotools,
makeWrapper,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "psb_status";
version = "0-unstable-2024-10-10";
src = fetchFromGitHub {
owner = "mkopec";
repo = "psb_status";
rev = "be896832c53d6b0b70cf8a87f7ee46ad33deefc2";
hash = "sha256-4anPyjO8y3FgnYWa4bGFxI8Glk9srw/XF552tnixc8I=";
};
dontBuild = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m755 psb_status.sh $out/bin/psb_status
wrapProgram $out/bin/psb_status \
--prefix PATH : ${lib.makeBinPath [ iotools ]}
runHook postInstall
'';
meta = {
description = "Script to check Platform Secure Boot enablement on Zen based AMD CPUs";
homepage = "https://github.com/mkopec/psb_status";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ phodina ];
platforms = [ "x86_64-linux" ];
mainProgram = "psb_status";
};
})

View File

@@ -0,0 +1,78 @@
# Based on https://github.com/justinwoo/easy-purescript-nix/blob/master/psc-package-simple.nix
{
stdenv,
lib,
fetchurl,
gmp,
zlib,
libiconv,
installShellFiles,
}:
let
dynamic-linker = stdenv.cc.bintools.dynamicLinker;
in
stdenv.mkDerivation rec {
pname = "psc-package-simple";
version = "0.6.2";
src =
if stdenv.hostPlatform.isDarwin then
fetchurl {
url = "https://github.com/purescript/psc-package/releases/download/v0.6.2/macos.tar.gz";
sha256 = "17dh3bc5b6ahfyx0pi6n9qnrhsyi83qdynnca6k1kamxwjimpcq1";
}
else
fetchurl {
url = "https://github.com/purescript/psc-package/releases/download/v0.6.2/linux64.tar.gz";
sha256 = "1zvay9q3xj6yd76w6qyb9la4jaj9zvpf4dp78xcznfqbnbhm1a54";
};
buildInputs = [
gmp
zlib
];
nativeBuildInputs = [ installShellFiles ];
libPath = lib.makeLibraryPath buildInputs;
dontStrip = true;
installPhase = ''
mkdir -p $out/bin
PSC_PACKAGE=$out/bin/psc-package
install -D -m555 -T psc-package $PSC_PACKAGE
chmod u+w $PSC_PACKAGE
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
install_name_tool \
-change /usr/lib/libiconv.2.dylib ${libiconv}/libiconv.2.dylib \
$PSC_PACKAGE
''
+ lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
patchelf --interpreter ${dynamic-linker} --set-rpath ${libPath} $PSC_PACKAGE
''
+ ''
chmod u-w $PSC_PACKAGE
installShellCompletion --cmd psc-package \
--bash <($PSC_PACKAGE --bash-completion-script $PSC_PACKAGE) \
--fish <($PSC_PACKAGE --fish-completion-script $PSC_PACKAGE) \
--zsh <($PSC_PACKAGE --zsh-completion-script $PSC_PACKAGE)
'';
meta = with lib; {
description = "Package manager for PureScript based on package sets";
mainProgram = "psc-package";
license = licenses.bsd3;
maintainers = [ ];
platforms = [
"x86_64-darwin"
"x86_64-linux"
];
};
}

View File

@@ -0,0 +1,57 @@
{
stdenv,
buildGoModule,
fetchFromGitHub,
installShellFiles,
lib,
pscale,
testers,
}:
buildGoModule rec {
pname = "pscale";
version = "0.258.0";
src = fetchFromGitHub {
owner = "planetscale";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-FsDcZcha8jR+jTbZbL/34SDUS/GvyAtuWL2NK0Okofc=";
};
vendorHash = "sha256-bzJydUOC08NLVVwEzJ+ZSC65lI4EKS1gzjTMIN3rukM=";
ldflags = [
"-s"
"-w"
"-X main.version=v${version}"
"-X main.commit=v${version}"
"-X main.date=unknown"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd pscale \
--bash <($out/bin/pscale completion bash) \
--fish <($out/bin/pscale completion fish) \
--zsh <($out/bin/pscale completion zsh)
'';
__darwinAllowLocalNetworking = true;
passthru.tests.version = testers.testVersion {
package = pscale;
};
meta = {
description = "CLI for PlanetScale Database";
mainProgram = "pscale";
changelog = "https://github.com/planetscale/cli/releases/tag/v${version}";
homepage = "https://www.planetscale.com/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
kashw2
];
};
}

View File

@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchFromGitLab,
meson,
pkg-config,
ninja,
cairo,
}:
stdenv.mkDerivation rec {
pname = "pscircle";
version = "1.4.0";
src = fetchFromGitLab {
owner = "mildlyparallel";
repo = "pscircle";
rev = "v${version}";
hash = "sha256-bqbQBNscNfoqXprhoFUnUQO88YQs9xDhD4d3KHamtG0=";
};
nativeBuildInputs = [
meson
pkg-config
ninja
];
buildInputs = [
cairo
];
meta = with lib; {
homepage = "https://gitlab.com/mildlyparallel/pscircle";
description = "Visualize Linux processes in a form of a radial tree";
mainProgram = "pscircle";
license = licenses.gpl2Only;
maintainers = [ maintainers.ldesgoui ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,33 @@
{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation rec {
pname = "psftools";
version = "1.1.2";
src = fetchurl {
url = "https://www.seasip.info/Unix/PSF/${pname}-${version}.tar.gz";
sha256 = "sha256-d/XlKPqYy9x8KNT+8G6zv9ST/uU53Tg4pYrlA17Jh94=";
};
outputs = [
"out"
"man"
"dev"
"lib"
];
meta = with lib; {
homepage = "https://www.seasip.info/Unix/PSF";
description = "Conversion tools for .PSF fonts";
longDescription = ''
The PSFTOOLS are designed to manipulate fixed-width bitmap fonts,
such as DOS or Linux console fonts. Both the PSF1 (8 pixels wide)
and PSF2 (any width) formats are supported; the default output
format is PSF2.
'';
platforms = platforms.unix;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ kaction ];
};
}

View File

@@ -0,0 +1,41 @@
{
haskellPackages,
fetchFromGitHub,
lib,
}:
haskellPackages.mkDerivation rec {
pname = "pshash";
version = "0.1.16.0";
src = fetchFromGitHub {
owner = "thornoar";
repo = "pshash";
tag = "v${version}";
hash = "sha256-3Qe52Hto3Z96b5q9TLz7XB7BzMfdNBd4p8V6dknH6VM=";
};
postPatch = ''
patchShebangs --build test/output.sh
'';
isLibrary = false;
isExecutable = true;
doCheck = true;
checkPhase = ''
runHook preCheck
test/output.sh dist/build/pshash/pshash
runHook postCheck
'';
executableHaskellDepends = with haskellPackages; [
base
containers
directory
];
license = lib.licenses.mit;
description = "Functional pseudo-hash password creation tool";
homepage = "https://github.com/thornoar/pshash";
maintainers = with lib.maintainers; [ thornoar ];
mainProgram = "pshash";
}

View File

@@ -0,0 +1,55 @@
{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
pkg-config,
libevent,
file,
qrencode,
openssl,
miniupnpc,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pshs";
version = "0.4.3";
src = fetchFromGitHub {
owner = "projg2";
repo = "pshs";
rev = "v${finalAttrs.version}";
hash = "sha256-sfhhxeQa0rmBerfAemuHou0N001Zq5Hh7s7utxLQHOI=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
libevent
file
qrencode
openssl
miniupnpc
];
strictDeps = true;
__structuredAttrs = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Pretty small HTTP server - a command-line tool to share files";
mainProgram = "pshs";
homepage = "https://github.com/mgorny/pshs";
sourceProvenance = [ lib.sourceTypes.fromSource ];
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
};
})

View File

@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchFromGitHub,
systemd,
libnotify,
pkg-config,
}:
stdenv.mkDerivation rec {
pname = "psi-notify";
version = "1.3.1";
src = fetchFromGitHub {
owner = "cdown";
repo = "psi-notify";
rev = version;
sha256 = "sha256-GhGiSI5r0Ki6+MYNa5jCDyYZEW5R9LDNZ/S8K+6L0jo=";
};
buildInputs = [
systemd
libnotify
];
nativeBuildInputs = [ pkg-config ];
installPhase = ''
runHook preInstall
install -D psi-notify $out/bin/psi-notify
substituteInPlace psi-notify.service --replace psi-notify $out/bin/psi-notify
install -D psi-notify.service $out/lib/systemd/user/psi-notify.service
runHook postInstall
'';
meta = with lib; {
description = "Alert on system resource saturation";
longDescription = ''
psi-notify can alert you when resources on your machine are becoming
oversaturated, and allow you to take action before your system slows to a
crawl.
'';
license = licenses.mit;
homepage = "https://github.com/cdown/psi-notify";
platforms = platforms.linux;
maintainers = with maintainers; [ eduarrrd ];
mainProgram = "psi-notify";
};
}

View File

@@ -0,0 +1,32 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "psitop";
version = "1.1.3";
src = fetchFromGitHub {
owner = "jamespwilliams";
repo = "psitop";
rev = version;
hash = "sha256-TD+NTlfmBtz+m2w2FnTcUIJQakpvVBCK/MAHfCrOue4=";
};
vendorHash = "sha256-oLtKpBvTsM5TbzfWIDfqgb7DL5D3Mldu0oimVeiUeSc=";
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "Top for /proc/pressure";
homepage = "https://github.com/jamespwilliams/psitop";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "psitop";
};
}

View File

@@ -0,0 +1,61 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
pkg-config,
vips,
}:
buildNpmPackage (finalAttrs: {
pname = "psitransfer";
version = "2.3.0";
src = fetchFromGitHub {
owner = "psi-4ward";
repo = "psitransfer";
tag = "v${finalAttrs.version}";
hash = "sha256-XUEvR8dWwFBbZdwVM8PQnYBc17SvGF5uO04vb/nAR2A=";
};
npmDepsHash = "sha256-BZpd/fsuV77uj2bGZcqBpIuOq3YlUw2bxovOfu8b9iE=";
app = buildNpmPackage {
pname = "psitransfer-app";
inherit (finalAttrs) version src;
npmDepsHash = "sha256-zEGYv6TaHzgPCB3mHP2UMh8VkFqSBdrLuP5KjuEU0p8=";
postPatch = ''
# https://github.com/psi-4ward/psitransfer/pull/284
touch public/app/.npmignore
cd app
'';
installPhase = ''
cp -r ../public/app $out
'';
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
vips # for 'sharp' dependency
];
postPatch = ''
rm -r public/app
cp -r ${finalAttrs.app} public/app
'';
dontBuild = true;
passthru.updateScript = ./update.sh;
meta = {
description = "Simple open source self-hosted file sharing solution";
homepage = "https://github.com/psi-4ward/psitransfer";
changelog = "https://github.com/psi-4ward/psitransfer/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ hyshka ];
mainProgram = "psitransfer";
};
})

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-update
set -euo pipefail
nix-update psitransfer --src-only --version-regex='^v(\d+\.\d+\.\d+)$'
nix-update psitransfer.app --version=skip
nix-update psitransfer --version=skip

View File

@@ -0,0 +1,70 @@
{
lib,
stdenv,
fetchurl,
cmake,
pkg-config,
zlib,
libpng,
libjpeg,
giflib,
libtiff,
}:
stdenv.mkDerivation rec {
pname = "pslib";
version = "0.4.8";
src = fetchurl {
name = "${pname}-snixource-${version}.tar.gz";
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
sha256 = "sha256-gaWNvBLuUUy0o+HWCOyG6KmzxDrYCY6PV3WbA/jjH64=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
zlib
libpng
libjpeg
giflib
libtiff
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
doCheck = true;
outputs = [
"out"
"dev"
"doc"
];
installPhase = ''
mkdir -p $out/lib
for path in *.dylib *.so *.so.* *.o *.o.*; do
mv $path $out/lib/
done
mkdir -p $dev/include
mv ../include/libps $dev/include
if test -d nix-support; then
mv nix-support $dev
fi
mkdir -p $doc/share/doc/${pname}
cp -r ../doc/. $doc/share/doc/${pname}
'';
meta = with lib; {
description = "C-library for generating multi page PostScript documents";
homepage = "https://pslib.sourceforge.net/";
changelog = "https://sourceforge.net/p/pslib/git/ci/master/tree/pslib/ChangeLog";
license = licenses.gpl2;
maintainers = with maintainers; [ ShamrockLee ];
platforms = platforms.unix;
};
}

View File

@@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchFromGitLab,
autoconf,
automake,
gettext,
ncurses,
}:
stdenv.mkDerivation rec {
pname = "psmisc";
version = "23.7";
src = fetchFromGitLab {
owner = "psmisc";
repo = "psmisc";
rev = "v${version}";
hash = "sha256-49YpdIh0DxLHfxos4sw1HUkV0XQBqmm4M9b0T4eN2xI=";
};
nativeBuildInputs = [
autoconf
automake
gettext
];
buildInputs = [ ncurses ];
preConfigure =
lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
# Goes past the rpl_malloc linking failure
export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
''
+ ''
echo $version > .tarball-version
./autogen.sh
'';
meta = with lib; {
homepage = "https://gitlab.com/psmisc/psmisc";
description = "Set of small useful utilities that use the proc filesystem (such as fuser, killall and pstree)";
platforms = platforms.linux;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ryantm ];
};
}

View File

@@ -0,0 +1,34 @@
{
lib,
stdenvNoCC,
fetchurl,
}:
stdenvNoCC.mkDerivation rec {
pname = "psol";
version = "1.13.35.2"; # Latest stable, 2018-02-05
src = fetchurl {
url = "https://dl.google.com/dl/page-speed/psol/${version}-x64.tar.gz";
hash = "sha256-3zujyPxU4ThF0KHap6bj2YMSbCORKFG7+Lo1vmRqQ08=";
};
installPhase = ''
runHook preInstall
mkdir -p $out
mv include lib -t $out
runHook postInstall
'';
meta = with lib; {
description = "PageSpeed Optimization Libraries";
homepage = "https://developers.google.com/speed/pagespeed/psol";
license = licenses.asl20;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
# WARNING: This only works with Linux because the pre-built PSOL binary is only supplied for Linux.
# TODO: Build PSOL from source to support more platforms.
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,50 @@
{
lib,
stdenv,
fetchFromGitHub,
gnugrep,
ncurses,
pkg-config,
installShellFiles,
readline,
libpq,
}:
stdenv.mkDerivation rec {
pname = "pspg";
version = "5.8.12";
src = fetchFromGitHub {
owner = "okbob";
repo = "pspg";
rev = version;
sha256 = "sha256-TLHGMqrKqWQ7ccnPFV9N6FuF+ZeOGjhuiS1X8W8kW/4=";
};
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [
gnugrep
libpq
ncurses
readline
];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
postInstall = ''
installManPage pspg.1
installShellCompletion --bash --cmd pspg bash-completion.sh
'';
meta = with lib; {
homepage = "https://github.com/okbob/pspg";
description = "Postgres Pager";
license = licenses.bsd2;
platforms = platforms.unix;
maintainers = [ maintainers.jlesquembre ];
mainProgram = "pspg";
};
}

View File

@@ -0,0 +1,93 @@
{
lib,
stdenv,
fetchurl,
libxml2,
readline,
zlib,
perl,
cairo,
gtk3,
gsl,
pkg-config,
gtksourceview4,
pango,
gettext,
dconf,
makeWrapper,
gsettings-desktop-schemas,
hicolor-icon-theme,
texinfo,
ssw,
python3,
iconv,
}:
stdenv.mkDerivation rec {
pname = "pspp";
version = "2.0.1";
src = fetchurl {
url = "mirror://gnu/pspp/${pname}-${version}.tar.gz";
sha256 = "sha256-jtuw8J6M+AEMrZ4FWeAjDX/FquRyHHVsNQVU3zMCTAA=";
};
nativeBuildInputs = [
pkg-config
texinfo
python3
makeWrapper
];
buildInputs = [
libxml2
readline
zlib
perl
cairo
gtk3
gsl
gtksourceview4
pango
gettext
gsettings-desktop-schemas
hicolor-icon-theme
ssw
iconv
];
C_INCLUDE_PATH =
"${libxml2.dev}/include/libxml2/:" + lib.makeSearchPathOutput "dev" "include" buildInputs;
LIBRARY_PATH = lib.makeLibraryPath buildInputs;
doCheck = false;
enableParallelBuilding = true;
preFixup = ''
wrapProgram "$out/bin/psppire" \
--prefix XDG_DATA_DIRS : "$out/share" \
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules"
'';
meta = {
homepage = "https://www.gnu.org/software/pspp/";
description = "Free replacement for SPSS, a program for statistical analysis of sampled data";
license = lib.licenses.gpl3Plus;
longDescription = ''
PSPP is a program for statistical analysis of sampled data. It is
a Free replacement for the proprietary program SPSS.
PSPP can perform descriptive statistics, T-tests, anova, linear
and logistic regression, cluster analysis, factor analysis,
non-parametric tests and more. Its backend is designed to perform
its analyses as fast as possible, regardless of the size of the
input data. You can use PSPP with its graphical interface or the
more traditional syntax commands.
'';
platforms = lib.platforms.unix;
};
}

View File

@@ -0,0 +1,51 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
coreutils,
gnused,
postgresql,
makeWrapper,
}:
stdenvNoCC.mkDerivation rec {
pname = "psql2csv";
version = "0.12";
src = fetchFromGitHub {
owner = "fphilipe";
repo = "psql2csv";
rev = "v${version}";
hash = "sha256-XIdZ2+Jlw2JLn4KXD9h3+xXymu4FhibAfp5uGGkVwLQ=";
};
nativeBuildInputs = [ makeWrapper ];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin psql2csv
wrapProgram $out/bin/psql2csv \
--prefix PATH : ${
lib.makeBinPath [
coreutils
gnused
postgresql
]
}
runHook postInstall
'';
meta = with lib; {
description = "Tool to run a PostreSQL query and output the result as CSV";
homepage = "https://github.com/fphilipe/psql2csv";
license = licenses.mit;
maintainers = [ ];
inherit (postgresql.meta) platforms;
mainProgram = "psql2csv";
};
}

View File

@@ -0,0 +1,67 @@
{
autoreconfHook,
fetchFromGitHub,
lib,
libpq,
nix-update-script,
openssl,
stdenv,
withLibiodbc ? false,
libiodbc,
withUnixODBC ? true,
unixODBC,
}:
assert lib.xor withLibiodbc withUnixODBC;
stdenv.mkDerivation (finalAttrs: {
pname = "psqlodbc";
version = "17.00.0006";
src = fetchFromGitHub {
owner = "postgresql-interfaces";
repo = "psqlodbc";
tag = "REL-${lib.replaceString "." "_" finalAttrs.version}";
hash = "sha256-iu1PWkfOyWtMmy7/8W+acu8v+e8nUPkCIHtVNZ8HzRg=";
};
buildInputs = [
libpq
openssl
]
++ lib.optional withLibiodbc libiodbc
++ lib.optional withUnixODBC unixODBC;
nativeBuildInputs = [
autoreconfHook
];
strictDeps = true;
configureFlags = [
"CPPFLAGS=-DSQLCOLATTRIBUTE_SQLLEN" # needed for cross
"--with-libpq=${lib.getDev libpq}"
]
++ lib.optional withLibiodbc "--with-iodbc=${libiodbc}"
++ lib.optional withUnixODBC "--with-unixodbc=${unixODBC}";
passthru = {
updateScript = nix-update-script {
extraArgs = [ "--version-regex=^REL-(\\d+)_(\\d+)_(\\d+)$" ];
};
}
// lib.optionalAttrs withUnixODBC {
fancyName = "PostgreSQL";
driver = "lib/psqlodbcw.so";
};
meta = {
homepage = "https://odbc.postgresql.org/";
description = "ODBC driver for PostgreSQL";
license = lib.licenses.lgpl2;
platforms = lib.platforms.unix;
teams = libpq.meta.teams;
};
})

View File

@@ -0,0 +1,47 @@
{
lib,
fetchFromGitHub,
python3Packages,
openssh,
rsync,
}:
python3Packages.buildPythonApplication rec {
pname = "pssh";
version = "2.3.5";
pyproject = true;
src = fetchFromGitHub {
owner = "lilydjwg";
repo = "pssh";
tag = "v${version}";
hash = "sha256-JZOO5xmW34lvWzGL4tC9fquZOOYhub0/aa/iQ63rjHE=";
};
build-system = with python3Packages; [ setuptools ];
postPatch = ''
for f in bin/*; do
substituteInPlace $f \
--replace "'ssh'" "'${openssh}/bin/ssh'" \
--replace "'scp'" "'${openssh}/bin/scp'" \
--replace "'rsync'" "'${rsync}/bin/rsync'"
done
'';
# Tests do not run with python3: https://github.com/lilydjwg/pssh/issues/126
doCheck = false;
meta = with lib; {
description = "Parallel SSH Tools";
longDescription = ''
PSSH provides parallel versions of OpenSSH and related tools,
including pssh, pscp, prsync, pnuke and pslurp.
'';
inherit (src.meta) homepage;
changelog = "https://github.com/lilydjwg/pssh/blob/${src.tag}/ChangeLog";
license = licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ chris-martin ];
};
}

View File

@@ -0,0 +1,66 @@
diff --git a/psst-core/build.rs b/psst-core/build.rs
deleted file mode 100644
index 4e899af..0000000
--- a/psst-core/build.rs
+++ /dev/null
@@ -1,43 +0,0 @@
-use gix_config::File;
-use std::{env, fs, io::Write};
-use time::OffsetDateTime;
-
-fn main() {
- let outdir = env::var("OUT_DIR").unwrap();
- let outfile = format!("{}/build-time.txt", outdir);
-
- let mut fh = fs::File::create(outfile).unwrap();
- let now = OffsetDateTime::now_local().unwrap_or_else(|_| OffsetDateTime::now_utc());
- write!(fh, r#""{}""#, now).ok();
-
- let git_config = File::from_git_dir("../.git/".into()).expect("Git Config not found!");
- // Get Git's 'Origin' URL
- let mut remote_url = git_config
- .raw_value("remote.origin.url")
- .expect("Couldn't extract origin url!")
- .to_string();
-
- // Check whether origin is accessed via ssh
- if remote_url.contains('@') {
- // If yes, strip the `git@` prefix and split the domain and path
- let mut split = remote_url
- .strip_prefix("git@")
- .unwrap_or(&remote_url)
- .split(':');
- let domain = split
- .next()
- .expect("Couldn't extract domain from ssh-style origin");
- let path = split
- .next()
- .expect("Couldn't expect path from ssh-style origin");
-
- // And construct the http-style url
- remote_url = format!("https://{domain}/{path}");
- }
- let trimmed_url = remote_url.trim_end_matches(".git");
- remote_url.clone_from(&String::from(trimmed_url));
-
- let outfile = format!("{}/remote-url.txt", outdir);
- let mut file = fs::File::create(outfile).unwrap();
- write!(file, r#""{}""#, remote_url).ok();
-}
diff --git a/psst-core/src/lib.rs b/psst-core/src/lib.rs
index 2faa317..b890a2d 100644
--- a/psst-core/src/lib.rs
+++ b/psst-core/src/lib.rs
@@ -2,9 +2,9 @@
use git_version::git_version;
-pub const GIT_VERSION: &str = git_version!();
-pub const BUILD_TIME: &str = include!(concat!(env!("OUT_DIR"), "/build-time.txt"));
-pub const REMOTE_URL: &str = include!(concat!(env!("OUT_DIR"), "/remote-url.txt"));
+pub const GIT_VERSION: &str = "";
+pub const BUILD_TIME: &str = "1970-01-01 00:00:00";
+pub const REMOTE_URL: &str = "https://github.com/jpochyla/psst";
pub mod actor;
pub mod audio;

View File

@@ -0,0 +1,92 @@
{
alsa-lib,
atk,
cairo,
dbus,
fetchFromGitHub,
gdk-pixbuf,
glib,
gtk3,
lib,
libclang,
makeDesktopItem,
nix-update-script,
pango,
pkg-config,
rustPlatform,
stdenv,
}:
let
desktopItem = makeDesktopItem {
categories = [
"Audio"
"AudioVideo"
];
comment = "Spotify client with native GUI written in Rust, without Electron";
desktopName = "Psst";
exec = "psst-gui %U";
icon = "psst";
name = "Psst";
startupWMClass = "psst-gui";
};
in
rustPlatform.buildRustPackage {
pname = "psst";
version = "0-unstable-2025-04-20";
src = fetchFromGitHub {
owner = "jpochyla";
repo = "psst";
rev = "86169f8b05c1b3502261cfe1fae9af2487b8f1bb";
hash = "sha256-BkGoaYflCTiElTj47r2j/ngUrZ9wIe0q4pl+zhoattA=";
};
cargoHash = "sha256-gt2EDrZ+XXig5JUsmQksSLaFd7UArnttOT4UiTVASXw=";
# specify the subdirectory of the binary crate to build from the workspace
buildAndTestSubdir = "psst-gui";
env = {
LIBCLANG_PATH = "${lib.getLib libclang}/lib";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
atk
cairo
gdk-pixbuf
glib
gtk3
pango
]
++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
dbus
];
patches = [
# Use a fixed build time, hard-code upstream URL instead of trying to read `.git`
./make-build-reproducible.patch
];
postInstall = ''
install -Dm644 psst-gui/assets/logo_512.png -t $out/share/icons/hicolor/512x512/apps/psst.png
install -Dm644 ${desktopItem}/share/applications/* -t $out/share/applications
'';
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Spotify client with native GUI written in Rust, without Electron";
homepage = "https://github.com/jpochyla/psst";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [
vbrandl
peterhoeg
];
mainProgram = "psst-gui";
};
}

View File

@@ -0,0 +1,65 @@
{
stdenv,
fetchurl,
pkg-config,
lib,
zlib,
ghostscript,
imagemagick,
plotutils,
gd,
libjpeg,
libwebp,
libiconv,
makeWrapper,
}:
stdenv.mkDerivation rec {
pname = "pstoedit";
version = "4.02";
src = fetchurl {
url = "mirror://sourceforge/pstoedit/pstoedit-${version}.tar.gz";
hash = "sha256-VYi0MtLGsq2YKLRJFepYE/+aOjMSpB+g3kw43ayd9y8=";
};
postPatch = ''
# don't use gnu-isms like link.h on macos
substituteInPlace src/pstoedit.cpp --replace-fail '#ifndef _MSC_VER' '#if !defined(_MSC_VER) && !defined(__APPLE__)'
'';
outputs = [
"out"
"dev"
];
nativeBuildInputs = [
makeWrapper
pkg-config
];
buildInputs = [
zlib
ghostscript
imagemagick
plotutils
gd
libjpeg
libwebp
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
];
postInstall = ''
wrapProgram $out/bin/pstoedit \
--prefix PATH : ${lib.makeBinPath [ ghostscript ]}
'';
meta = with lib; {
description = "Translates PostScript and PDF graphics into other vector formats";
homepage = "https://sourceforge.net/projects/pstoedit/";
license = licenses.gpl2Plus;
maintainers = [ maintainers.marcweber ];
platforms = platforms.unix;
mainProgram = "pstoedit";
};
}

View File

@@ -0,0 +1,45 @@
{
lib,
stdenv,
fetchgit,
}:
stdenv.mkDerivation rec {
pname = "PStreams";
version = "1.0.1";
src = fetchgit {
url = "https://git.code.sf.net/p/pstreams/code";
rev =
let
dot2Underscore = lib.strings.stringAsChars (c: if c == "." then "_" else c);
in
"RELEASE_${dot2Underscore version}";
sha256 = "0r8aj0nh5mkf8cvnzl8bdy4nm7i74vs83axxfimcd74kjfn0irys";
};
makeFlags = [ "prefix=${placeholder "out"}" ];
dontBuild = true;
doCheck = true;
preInstall = "rm INSTALL";
# `make install` fails on case-insensitive file systems (e.g. APFS by
# default) because this target exists
meta = with lib; {
description = "POSIX Process Control in C++";
longDescription = ''
PStreams allows you to run another program from your C++ application and
to transfer data between the two programs similar to shell pipelines.
In the simplest case, a PStreams class is like a C++ wrapper for the
POSIX.2 functions popen(3) and pclose(3), using C++ iostreams instead of
C's stdio library.
'';
homepage = "https://pstreams.sourceforge.net/";
downloadPage = "https://pstreams.sourceforge.net/download/";
maintainers = with maintainers; [ arthur ];
license = licenses.boost;
platforms = platforms.all;
};
}

View File

@@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation rec {
pname = "pstree";
version = "2.39";
src = fetchurl {
urls = [
"https://distfiles.macports.org/${pname}/${pname}-${version}.tar.gz"
"https://fossies.org/linux/misc/${pname}-${version}.tar.gz"
"ftp://ftp.thp.uni-duisburg.de/pub/source/${pname}-${version}.tar.gz"
];
sha256 = "17s7v15c4gryjpi11y1xq75022nkg4ggzvjlq2dkmyg67ssc76vw";
};
sourceRoot = ".";
buildPhase = ''
runHook preBuild
$CC $NIX_CFLAGS -o pstree pstree.c
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm0555 ${pname} -t $out/bin
install -Dm0444 ${pname}.1 -t $out/share/man/man1
runHook postInstall
'';
meta = with lib; {
description = "Show the set of running processes as a tree";
homepage = "http://www.thp.uni-duisburg.de/pstree/";
license = licenses.gpl2;
maintainers = [ maintainers.c0bw3b ];
platforms = platforms.unix;
priority = 5; # Lower than psmisc also providing pstree on Linux platforms
mainProgram = "pstree";
};
}

View File

@@ -0,0 +1,44 @@
{
lib,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "psudohash";
version = "1.1.0";
pyproject = false;
src = fetchFromGitHub {
owner = "t3l3machus";
repo = "psudohash";
tag = "v${version}";
hash = "sha256-I/vHQraGmIWmx/v+szL5ZQJpjkSBaCpEx0r4Mc6FgKA=";
};
dependencies = with python3Packages; [
tqdm
];
installPhase = ''
runHook preInstall
install -Dm555 psudohash.py $out/bin/psudohash
install -Dm444 common_padding_values.txt $out/share/psudohash/common_padding_values.txt
substituteInPlace $out/bin/psudohash \
--replace "common_padding_values.txt" "$out/share/${pname}/common_padding_values.txt"
runHook postInstall
'';
meta = {
description = "Password list generator for orchestrating brute force attacks and cracking hashes";
homepage = "https://github.com/t3l3machus/psudohash";
changelog = "https://github.com/t3l3machus/psudohash/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ exploitoverload ];
mainProgram = "psudohash";
};
}

View File

@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchurl,
perl,
}:
stdenv.mkDerivation rec {
pname = "psutils";
version = "17";
src = fetchurl {
url = "http://knackered.knackered.org/angus/download/${pname}/${pname}-p${version}.tar.gz";
hash = "sha256-OFPreVhLqPvieoFUJbZan38Vsljg1DoFqFa9t11YiuQ=";
};
postPatch = ''
sed -i 's/void main/int main/' *.c
'';
configurePhase = ''
sed -e 's,/usr/local/bin/perl,${perl}/bin/perl,' \
-e "s,/usr/local,$out," \
-e "s,CFLAGS =,CFLAGS = -std=c89," \
Makefile.unix > Makefile
'';
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
preInstall = ''
mkdir -p $out/bin $out/share/man/man1
'';
meta = {
description = "Collection of useful utilities for manipulating PS documents";
homepage = "http://knackered.knackered.org/angus/psutils/";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
};
}

View File

@@ -0,0 +1,29 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "psw";
version = "0.2.1";
src = fetchFromGitHub {
owner = "Wulfsta";
repo = "psw";
rev = version;
sha256 = "sha256-Rf6vpVgenTzb42/aGqItuxUodl61eNyUPlry7rgLPbI=";
};
cargoHash = "sha256-dfHcyGQYkjEAhrNRlD5BTbMwaZaO/E0KwqZJ8TjelGw=";
meta = with lib; {
description = "Command line tool to write random bytes to stdout";
homepage = "https://github.com/Wulfsta/psw";
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [ wulfsta ];
};
}

View File

@@ -0,0 +1,63 @@
{
fetchFromGitHub,
fetchurl,
lib,
php,
versionCheckHook,
}:
let
pname = "psysh";
version = "0.12.7";
src = fetchFromGitHub {
owner = "bobthecow";
repo = "psysh";
tag = "v${version}";
hash = "sha256-dgMUz7lB1XoJ08UvF9XMZGVXYcFK9sNnSb+pcwfeoqQ=";
};
composerLock = fetchurl {
name = "composer.lock";
url = "https://github.com/bobthecow/psysh/releases/download/v${version}/composer-v${version}.lock";
hash = "sha256-JYJksHKyKKhU248hLPaNXFCh3X+5QiT8iNKzeGc1ZPw=";
};
in
php.buildComposerProject2 (finalAttrs: {
inherit
pname
version
src
;
composerVendor = php.mkComposerVendor {
inherit
src
version
pname
composerLock
;
preBuild = ''
composer config platform.php 7.4
composer require --no-update symfony/polyfill-iconv:1.31 symfony/polyfill-mbstring:1.31
composer require --no-update --dev roave/security-advisories:dev-latest
composer update --lock --no-install
'';
vendorHash = "sha256-8l5bQ+VnLOtPUspMN1f+iXo7LldPTuYqyrAeW2aVoH8=";
};
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
changelog = "https://github.com/bobthecow/psysh/releases/tag/v${finalAttrs.version}";
description = "PsySH is a runtime developer console, interactive debugger and REPL for PHP";
mainProgram = "psysh";
license = lib.licenses.mit;
homepage = "https://psysh.org/";
teams = [ lib.teams.php ];
};
})