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,37 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
libphonenumber,
icu,
protobuf,
}:
stdenv.mkDerivation rec {
pname = "pn";
version = "0.9.0";
src = fetchFromGitHub {
owner = "Orange-OpenSource";
repo = "pn";
rev = "v${version}";
sha256 = "sha256-vRF9MPcw/hCreHVLD6QB7g1r0wQiZv1xrfzIHj1Yf9M=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
libphonenumber
icu
protobuf
];
meta = with lib; {
description = "Libphonenumber command-line wrapper";
mainProgram = "pn";
homepage = "https://github.com/Orange-OpenSource/pn";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = [ maintainers.McSinyx ];
};
}

View File

@@ -0,0 +1,79 @@
{
lib,
stdenv,
fetchFromGitHub,
gfortran,
autoreconfHook,
perl,
mpi,
mpiCheckPhaseHook,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pnetcdf";
version = "1.14.1";
src = fetchFromGitHub {
owner = "Parallel-NetCDF";
repo = "PnetCDF";
tag = "checkpoint.${finalAttrs.version}";
hash = "sha256-nz40Ji9qh6UatlLOuChsWYvHwfVNacJI87usGBcYyFk=";
};
nativeBuildInputs = [
perl
autoreconfHook
gfortran
];
buildInputs = [ mpi ];
postPatch = ''
patchShebangs src/binding/f77/buildiface test examples benchmarks
'';
__darwinAllowLocalNetworking = true;
doCheck = true;
nativeCheckInputs = [ mpiCheckPhaseHook ];
checkTarget = lib.concatStringsSep " " [
# build all test programs (build only, no run)
"tests"
# run sequential test programs
"check"
# run parallel test programs on 3,4,6,8 MPI processes
"ptests"
];
# cannot do parallel check otherwise failed
enableParallelChecking = false;
enableParallelBuilding = true;
passthru.updateScript = gitUpdater {
rev-prefix = "checkpoint.";
};
meta = {
homepage = "https://parallel-netcdf.github.io/";
license = with lib.licenses; [
# Files: *
# Copyright: (c) 2003 Northwestern University and Argonne National Laboratory
bsd3
# Files: src/drivers/common/utf8proc.c
# Copyright: (c) 2006-2007 Jan Behrens, FlexiGuided GmbH, Berlin
mit
# Files: src/drivers/common/utf8proc_data.c
# Copyright: 1991-2007 Unicode, Inc.
unicode-30
];
description = "Parallel I/O Library for NetCDF File Access";
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ qbisi ];
};
})

View File

@@ -0,0 +1,67 @@
{
autoreconfHook,
fetchFromGitHub,
fftwMpi,
gsl,
lib,
llvmPackages,
pfft,
precision ? "double",
stdenv,
}:
assert lib.elem precision [
"single"
"double"
"long-double"
];
let
fftw' = fftwMpi.override { inherit precision; };
pfft' = pfft.override { inherit precision; };
in
stdenv.mkDerivation (finalAttrs: {
pname = "pnfft-${precision}";
version = "1.0.7-alpha-unstable-2018-06-04";
src = fetchFromGitHub {
owner = "mpip";
repo = "pnfft";
rev = "a0bb24b8fa8af59c9e599b1cc3914586636d9125";
hash = "sha256-Cgusm/zWCLy//3qh/YAXjCZGl+QOnycUjUCQsd1HxvQ=";
};
outputs = [
"out"
"dev"
];
nativeBuildInputs = [ autoreconfHook ];
preConfigure = ''
export FCFLAGS="-I${lib.getDev fftw'}/include -I${lib.getDev pfft'}/include"
'';
configureFlags = [
"--enable-threads"
"--enable-portable-binary"
]
++ lib.optional (precision != "double") "--enable-${precision}";
buildInputs = [ gsl ] ++ lib.optional stdenv.cc.isClang llvmPackages.openmp;
propagatedBuildInputs = [ pfft' ];
enableParallelBuilding = true;
doCheck = true;
meta = {
description = "Parallel nonequispaced fast Fourier transforms";
homepage = "https://www-user.tu-chemnitz.de/~potts/workgroup/pippig/software.php.en#pnfft";
changelog = "https://github.com/mpip/pnfft/blob/master/ChangeLog";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ hmenke ];
platforms = lib.platforms.linux;
};
})

View File

@@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchurl,
zlib,
installShellFiles,
}:
stdenv.mkDerivation rec {
pname = "pngcheck";
version = "3.0.2";
src = fetchurl {
url = "mirror://sourceforge/png-mng/pngcheck-${version}.tar.gz";
sha256 = "sha256-DX4mLyQRb93yhHqM61yS2fXybvtC6f/2PsK7dnYTHKc=";
};
hardeningDisable = [ "format" ];
postPatch = ''
substituteInPlace $makefile \
--replace "gcc" "$CC"
'';
makefile = "Makefile.unx";
makeFlags = [ "ZPATH=${zlib.static}/lib" ];
nativeBuildInputs = [ installShellFiles ];
buildInputs = [ zlib ];
installPhase = ''
runHook preInstall
install -Dm555 -t $out/bin/ pngcheck
installManPage $pname.1
runHook postInstall
'';
meta = with lib; {
homepage = "https://pmt.sourceforge.net/pngcrush";
description = "Verifies the integrity of PNG, JNG and MNG files";
license = licenses.free;
platforms = platforms.unix;
maintainers = with maintainers; [ starcraft66 ];
mainProgram = "pngcheck";
};
}

View File

@@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchurl,
fetchpatch2,
libpng,
}:
stdenv.mkDerivation rec {
pname = "pngcrush";
version = "1.8.13";
src = fetchurl {
url = "mirror://sourceforge/pmt/pngcrush-${version}-nolib.tar.xz";
sha256 = "0l43c59d6v9l0g07z3q3ywhb8xb3vz74llv3mna0izk9bj6aqkiv";
};
patches = [
(fetchpatch2 {
url = "https://salsa.debian.org/debian/pngcrush/-/raw/b4856b56fbc28252103cc14d156baddd564ca880/debian/patches/ignore_PNG_IGNORE_ADLER32.patch";
hash = "sha256-pFON/NUJiXMe9GETptgNltWa0izlby6P/fLsG1abz3g=";
})
];
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
"LD=${stdenv.cc.targetPrefix}cc"
]; # gcc and/or clang compat
configurePhase = ''
runHook preConfigure
sed -i s,/usr,$out, Makefile
runHook postConfigure
'';
buildInputs = [ libpng ];
meta = {
homepage = "http://pmt.sourceforge.net/pngcrush";
description = "PNG optimizer";
license = lib.licenses.free;
platforms = with lib.platforms; linux ++ darwin;
mainProgram = "pngcrush";
};
}

View File

@@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
libpng,
zlib,
}:
stdenv.mkDerivation {
pname = "pngloss";
version = "unstable-2020-11-25";
src = fetchFromGitHub {
owner = "foobaz";
repo = "pngloss";
rev = "559f09437e1c797a1eaf08dfdcddd9b082f0e09c";
sha256 = "sha256-dqrrzbLu4znyWOlTDIf56O3efxszetiP+CdFiy2PBd4=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libpng
zlib
];
installPhase = ''
runHook preInstall
install -D ./src/pngloss $out/bin/pngloss
runHook postInstall
'';
meta = with lib; {
description = "Lossy compression of PNG images";
homepage = "https://github.com/foobaz/pngloss";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ _2gn ];
mainProgram = "pngloss";
};
}

View File

@@ -0,0 +1,17 @@
diff --git a/src/rwpng.c b/src/rwpng.c
index aaa21fc..11d698f 100644
--- a/src/rwpng.c
+++ b/src/rwpng.c
@@ -30,10 +30,12 @@
---------------------------------------------------------------------------*/
#include <stdio.h>
+#include <string.h>
#include <stdlib.h>
#include "png.h" /* libpng header; includes zlib.h */
#include "rwpng.h" /* typedefs, common macros, public prototypes */
+#include <zlib.h>
/* future versions of libpng will provide this macro: */
/* GRR NOTUSED */

View File

@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
libpng,
zlib,
}:
stdenv.mkDerivation rec {
pname = "pngnq";
version = "1.1";
src = fetchurl {
url = "mirror://sourceforge/pngnq/pngnq-${version}.tar.gz";
sha256 = "1qmnnl846agg55i7h4vmrn11lgb8kg6gvs8byqz34bdkjh5gwiy1";
};
patches = [
./missing-includes.patch
];
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=incompatible-pointer-types"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libpng
zlib
];
meta = with lib; {
homepage = "https://pngnq.sourceforge.net/";
description = "PNG quantizer";
license = licenses.bsd3;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchFromGitHub,
gtk3,
pkg-config,
}:
stdenv.mkDerivation rec {
pname = "pngoptimizer";
version = "2.7";
src = fetchFromGitHub {
owner = "hadrien-psydk";
repo = "pngoptimizer";
rev = "v${version}";
sha256 = "1hbgf91vzx46grslfdx86smdvm6gs6lq9hpa3bax9xfbsknxi0i7";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk3 ];
makeFlags = [
"CONFIG=release"
"DESTDIR=$(out)"
];
postInstall = ''
mv $out/usr/bin $out/bin
mv $out/usr/share $out/share
rmdir $out/usr
'';
meta = with lib; {
homepage = "https://psydk.org/pngoptimizer";
description = "PNG optimizer and converter";
# https://github.com/hadrien-psydk/pngoptimizer#license-information
license = with licenses; [
gpl2Only
lgpl21Only
zlib
];
maintainers = with maintainers; [ smitop ];
platforms = with platforms; linux;
};
}

View File

@@ -0,0 +1,79 @@
{
lib,
stdenv,
fetchurl,
unzip,
}:
let
platforms = {
aarch64-darwin = {
folder = ".";
};
aarch64-linux = {
folder = "aarch64";
ld-linux = "ld-linux-aarch64.so.1";
};
armv7l-linux = {
folder = "armv7";
ld-linux = "ld-linux-armhf.so.3";
};
i686-linux = {
folder = "i686";
ld-linux = "ld-linux.so.2";
};
x86_64-darwin = {
folder = ".";
};
x86_64-linux = {
folder = "amd64";
ld-linux = "ld-linux-x86-64.so.2";
};
};
platform =
platforms."${stdenv.hostPlatform.system}"
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
download =
if stdenv.hostPlatform.isDarwin then
{
suffix = "20230322-mac.zip";
hash = "sha256-Lj63k0UgYECuOg0NDs/prQHZL+UAK4oWdqZWMqVoQOE=";
}
else
{
suffix = "20200115-linux.tar.gz";
hash = "sha256-rDi7pvDeKQM96GZTjDr6ZDQTGbaVu+OI77xf2egw6Sg=";
};
in
stdenv.mkDerivation {
pname = "pngout";
version = "20230322";
src = fetchurl {
inherit (download) hash;
url = "https://www.jonof.id.au/files/kenutils/pngout-${download.suffix}";
};
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ unzip ];
# pngout is code-signed on Darwin, so dont alter the binary to avoid breaking the signature.
dontFixup = stdenv.hostPlatform.isDarwin;
installPhase = ''
mkdir -p $out/bin
cp ${platform.folder}/pngout $out/bin
''
+ lib.optionalString stdenv.hostPlatform.isLinux ''
patchelf --set-interpreter ${stdenv.cc.libc}/lib/${platform.ld-linux} $out/bin/pngout
'';
meta = {
description = "Tool that aggressively optimizes the sizes of PNG images";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfreeRedistributable;
homepage = "http://advsys.net/ken/utils.htm";
platforms = lib.attrNames platforms;
maintainers = [ lib.maintainers.sander ];
mainProgram = "pngout";
};
}

View File

@@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pngpaste";
version = "0.2.3";
src = fetchFromGitHub {
owner = "jcsalterego";
repo = "pngpaste";
tag = finalAttrs.version;
sha256 = "uvajxSelk1Wfd5is5kmT2fzDShlufBgC0PDCeabEOSE=";
};
installPhase = ''
runHook preInstall
install -Dm555 pngpaste $out/bin/pngpaste
runHook postInstall
'';
meta = {
description = "Paste image files from clipboard to file on MacOS";
longDescription = ''
Paste PNG into files on MacOS, much like pbpaste does for text.
Supported input formats are PNG, PDF, GIF, TIF, JPEG.
Supported output formats are PNG, GIF, JPEG, TIFF. Output
formats are determined by the provided filename extension,
falling back to PNG.
'';
homepage = "https://github.com/jcsalterego/pngpaste";
changelog = "https://github.com/jcsalterego/pngpaste/raw/${finalAttrs.version}/CHANGELOG.md";
platforms = lib.platforms.darwin;
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ samw ];
};
})

View File

@@ -0,0 +1,52 @@
{
lib,
stdenv,
fetchurl,
libpng,
docSupport ? true,
doxygen ? null,
}:
assert docSupport -> doxygen != null;
stdenv.mkDerivation rec {
pname = "pngpp";
version = "0.2.10";
src = fetchurl {
url = "mirror://savannah/pngpp/png++-${version}.tar.gz";
sha256 = "1qgf8j25r57wjqlnzdkm8ya5x1bmj6xjvapv8f2visqnmcbg52lr";
};
doCheck = true;
checkTarget = "test";
preCheck = ''
patchShebangs test/test.sh
substituteInPlace test/test.sh --replace "exit 1" "exit 0"
'';
postCheck = "cat test/test.log";
buildInputs = lib.optional docSupport doxygen;
propagatedBuildInputs = [ libpng ];
preConfigure =
lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace error.hpp --replace "#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE" "#if (__clang__ || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE"
''
+ ''
sed "s|\(PNGPP := .\)|PREFIX := ''${out}\n\\1|" -i Makefile
'';
makeFlags = lib.optional docSupport "docs";
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://www.nongnu.org/pngpp/";
description = "C++ wrapper for libpng library";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = [ maintainers.ramkromberg ];
};
}

View File

@@ -0,0 +1,428 @@
diff --git a/Cargo.lock b/Cargo.lock
new file mode 100644
index 0000000..319b40b
--- /dev/null
+++ b/Cargo.lock
@@ -0,0 +1,422 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "arrayvec"
+version = "0.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
+
+[[package]]
+name = "autocfg"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bitflags"
+version = "2.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
+
+[[package]]
+name = "bytemuck"
+version = "1.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "374d28ec25809ee0e23827c2ab573d729e293f281dfe393500e7ad618baa61c6"
+
+[[package]]
+name = "cc"
+version = "1.0.83"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
+dependencies = [
+ "jobserver",
+ "libc",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+
+[[package]]
+name = "cocoa_image"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea3dcd9c6980e6b9152a61476163a7039bdd73b4508f699b4b3b102d53490839"
+dependencies = [
+ "core-foundation",
+ "core-graphics",
+ "imgref",
+ "objc",
+ "rgb",
+]
+
+[[package]]
+name = "core-foundation"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
+[[package]]
+name = "core-foundation-sys"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
+
+[[package]]
+name = "core-graphics"
+version = "0.23.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "970a29baf4110c26fedbc7f82107d42c23f7e88e404c4577ed73fe99ff85a212"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation",
+ "core-graphics-types",
+ "foreign-types",
+ "libc",
+]
+
+[[package]]
+name = "core-graphics-types"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2bb142d41022986c1d8ff29103a1411c8a3dfad3552f87a4f8dc50d61d4f4e33"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation",
+ "libc",
+]
+
+[[package]]
+name = "crossbeam-deque"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef"
+dependencies = [
+ "cfg-if",
+ "crossbeam-epoch",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-epoch"
+version = "0.9.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7"
+dependencies = [
+ "autocfg",
+ "cfg-if",
+ "crossbeam-utils",
+ "memoffset",
+ "scopeguard",
+]
+
+[[package]]
+name = "crossbeam-utils"
+version = "0.8.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "dunce"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b"
+
+[[package]]
+name = "either"
+version = "1.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07"
+
+[[package]]
+name = "foreign-types"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
+dependencies = [
+ "foreign-types-macros",
+ "foreign-types-shared",
+]
+
+[[package]]
+name = "foreign-types-macros"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
+name = "foreign-types-shared"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
+
+[[package]]
+name = "getopts"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5"
+dependencies = [
+ "unicode-width",
+]
+
+[[package]]
+name = "glob"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
+
+[[package]]
+name = "imagequant"
+version = "4.2.2"
+dependencies = [
+ "arrayvec",
+ "once_cell",
+ "rayon",
+ "rgb",
+ "thread_local",
+]
+
+[[package]]
+name = "imagequant-sys"
+version = "4.0.3"
+dependencies = [
+ "bitflags 2.4.1",
+ "imagequant",
+ "libc",
+]
+
+[[package]]
+name = "imgref"
+version = "1.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "90d944e334f00f4449c9640b440a171f816be0152305c12ef90424fc35fd035c"
+
+[[package]]
+name = "jobserver"
+version = "0.1.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "lcms2-sys"
+version = "4.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "137dae56197ab9e66729ff73e2942e26f16f9ddcd14a53295c35f53dcd067b58"
+dependencies = [
+ "cc",
+ "dunce",
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.150"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c"
+
+[[package]]
+name = "libpng-sys"
+version = "1.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b531eb8c558e697d1fc6a642b260426aa85ba4d054a8f0db66f5866918332674"
+dependencies = [
+ "cc",
+ "dunce",
+ "libc",
+ "libz-sys",
+ "pkg-config",
+]
+
+[[package]]
+name = "libz-sys"
+version = "1.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d97137b25e321a73eef1418d1d5d2eda4d77e12813f8e6dead84bc52c5870a7b"
+dependencies = [
+ "cc",
+ "libc",
+ "pkg-config",
+ "vcpkg",
+]
+
+[[package]]
+name = "malloc_buf"
+version = "0.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "memoffset"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "objc"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"
+dependencies = [
+ "malloc_buf",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
+
+[[package]]
+name = "pkg-config"
+version = "0.3.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
+
+[[package]]
+name = "pngquant"
+version = "3.0.3"
+dependencies = [
+ "cc",
+ "cocoa_image",
+ "dunce",
+ "getopts",
+ "imagequant-sys",
+ "lcms2-sys",
+ "libc",
+ "libpng-sys",
+ "wild",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.33"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "rayon"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1"
+dependencies = [
+ "either",
+ "rayon-core",
+]
+
+[[package]]
+name = "rayon-core"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed"
+dependencies = [
+ "crossbeam-deque",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "rgb"
+version = "0.8.37"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05aaa8004b64fd573fc9d002f4e632d51ad4f026c2b5ba95fcb6c2f32c2c47d8"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "syn"
+version = "2.0.39"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "thread_local"
+version = "1.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152"
+dependencies = [
+ "cfg-if",
+ "once_cell",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
+
+[[package]]
+name = "unicode-width"
+version = "0.1.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85"
+
+[[package]]
+name = "vcpkg"
+version = "0.2.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
+
+[[package]]
+name = "wild"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "10d01931a94d5a115a53f95292f51d316856b68a035618eb831bbba593a30b67"
+dependencies = [
+ "glob",
+]

View File

@@ -0,0 +1,60 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
libpng,
zlib,
lcms2,
}:
rustPlatform.buildRustPackage rec {
pname = "pngquant";
version = "3.0.3";
outputs = [
"out"
"man"
];
src = fetchFromGitHub {
owner = "kornelski";
repo = "pngquant";
tag = version;
hash = "sha256-u2zEp9Llo+c/+1QGW4V4r40KQn/ATHCTEsrpy7bRf/I=";
fetchSubmodules = true;
};
cargoHash = "sha256-W+/y79KkSVHqBybouUazGVfTQAuelXvn6EXtu+TW7j4=";
cargoPatches = [
# https://github.com/kornelski/pngquant/issues/347
./add-Cargo.lock.patch
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libpng
zlib
lcms2
];
doCheck = false; # Has no Rust-based tests
postInstall = ''
install -Dpm0444 pngquant.1 $man/share/man/man1/pngquant.1
'';
meta = {
homepage = "https://pngquant.org/";
description = "Tool to convert 24/32-bit RGBA PNGs to 8-bit palette with alpha channel preserved";
changelog = "https://github.com/kornelski/pngquant/raw/${version}/CHANGELOG";
platforms = lib.platforms.unix;
license = with lib.licenses; [
gpl3Plus
hpnd
bsd2
];
mainProgram = "pngquant";
maintainers = [ ];
};
}

View File

@@ -0,0 +1,42 @@
{
lib,
stdenv,
fetchurl,
libpng,
fetchpatch,
}:
stdenv.mkDerivation rec {
pname = "pngtoico";
version = "1.0";
src = fetchurl {
url = "mirror://kernel/software/graphics/pngtoico/pngtoico-${version}.tar.gz";
sha256 = "1xb4aa57sjvgqfp01br3dm72hf7q0gb2ad144s1ifrs09215fgph";
};
patches = [
(fetchpatch {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5";
hash = "sha256-MeRV4FL37Wq7aFRnjbxPokcBKmPM+h94cnFJmdvHAt0=";
})
];
configurePhase = ''
runHook preConfigure
sed -i s,/usr/local,$out, Makefile
runHook postConfigure
'';
buildInputs = [ libpng ];
meta = {
homepage = "https://www.kernel.org/pub/software/graphics/pngtoico/";
description = "Small utility to convert a set of PNG images to Microsoft ICO format";
license = lib.licenses.gpl2Plus;
platforms = with lib.platforms; linux;
mainProgram = "pngtoico";
};
}

View File

@@ -0,0 +1,28 @@
{
lib,
stdenv,
libpng12,
fetchFromGitHub,
}:
stdenv.mkDerivation {
pname = "pngtools";
version = "0-unstable-2022-03-14";
src = fetchFromGitHub {
owner = "mikalstill";
repo = "pngtools";
rev = "1ccca3a0f3f6882661bbafbfb62feb774ca195d1";
sha256 = "sha256-W1XofOVTyfA7IbxOnTkWdOOZ00gZ4e0GOYl7nMtLIJk=";
};
buildInputs = [ libpng12 ];
meta = with lib; {
homepage = "https://github.com/mikalstill/pngtools";
description = "PNG manipulation tools";
maintainers = with maintainers; [ zendo ];
license = licenses.gpl2Only;
platforms = platforms.all;
};
}

View File

@@ -0,0 +1,53 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
gettext,
alsa-lib,
gtk3,
glib,
libnotify,
libX11,
pcre,
}:
stdenv.mkDerivation rec {
pname = "pnmixer";
version = "0.7.2";
src = fetchFromGitHub {
owner = "nicklan";
repo = "pnmixer";
rev = "v${version}";
sha256 = "0416pa933ddf4b7ph9zxhk5jppkk7ppcq1aqph6xsrfnka4yb148";
};
nativeBuildInputs = [
cmake
pkg-config
gettext
];
buildInputs = [
alsa-lib
gtk3
glib
libnotify
libX11
pcre
];
meta = with lib; {
homepage = "https://github.com/nicklan/pnmixer";
description = "ALSA volume mixer for the system tray";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [
campadrenalin
romildo
];
mainProgram = "pnmixer";
};
}

View File

@@ -0,0 +1,36 @@
{
rustPlatform,
fetchFromGitHub,
lib,
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
pname = "pnpm-shell-completion";
version = "0.5.4";
src = fetchFromGitHub {
owner = "g-plane";
repo = "pnpm-shell-completion";
rev = "v${version}";
hash = "sha256-bc2ZVHQF+lSAmhy/fvdiVfg9uzPPcXYrtiNChjkjHtA=";
};
cargoHash = "sha256-JL9bWVHmdSktOEF70WMOmZKdZwO/gNDp0GPDMYteR1E=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd pnpm \
--fish pnpm.fish \
--zsh pnpm-shell-completion.plugin.zsh
'';
meta = with lib; {
homepage = "https://github.com/g-plane/pnpm-shell-completion";
description = "Complete your pnpm command fastly";
license = licenses.mit;
maintainers = with maintainers; [ donovanglover ];
mainProgram = "pnpm-shell-completion";
};
}