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,30 @@
{
lib,
stdenv,
fetchurl,
mpfr,
readline,
}:
stdenv.mkDerivation rec {
pname = "wcalc";
version = "2.5";
src = fetchurl {
url = "mirror://sourceforge/w-calc/${pname}-${version}.tar.bz2";
sha256 = "1vi8dl6rccqiq1apmpwawyg2ywx6a1ic1d3cvkf2hlwk1z11fb0f";
};
buildInputs = [
mpfr
readline
];
meta = with lib; {
description = "Command line calculator";
homepage = "https://w-calc.sourceforge.net";
license = licenses.gpl2;
platforms = platforms.all;
mainProgram = "wcalc";
};
}

16
pkgs/by-name/wc/wcc/Cargo.lock generated Normal file
View File

@@ -0,0 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "rust_demangle_lib"
version = "0.1.0"
dependencies = [
"rustc-demangle",
]
[[package]]
name = "rustc-demangle"
version = "0.1.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"

View File

@@ -0,0 +1,87 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
cargo,
capstone,
libbfd,
libelf,
libiberty,
readline,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "wcc";
version = "0.0.11";
src = fetchFromGitHub {
owner = "endrazine";
repo = "wcc";
tag = "v${finalAttrs.version}";
hash = "sha256-hyelDAsE3IFvUxBqttYW7QmM6NPEa6pOREmawFjW2Q8=";
deepClone = true;
fetchSubmodules = true;
};
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
nativeBuildInputs = [
cargo
rustPlatform.cargoSetupHook
];
buildInputs = [
capstone
libbfd
libelf
libiberty
readline
];
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
sed -i src/wsh/include/libwitch/wsh.h src/wsh/scripts/INDEX \
-e "s#/usr/share/wcc#$out/share/wcc#"
sed -i -e '/stropts.h>/d' src/wsh/include/libwitch/wsh.h
sed -i '/wsh-static/d' src/wsh/Makefile
'';
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
installFlags = [ "DESTDIR=$(out)" ];
preInstall = ''
mkdir -p $out/usr/bin $out/lib/x86_64-linux-gnu
'';
postInstall = ''
mv $out/usr/* $out
rmdir $out/usr
mkdir -p $out/share/man/man1
cp doc/manpages/*.1 $out/share/man/man1/
'';
postFixup = ''
# not detected by patchShebangs
substituteInPlace $out/bin/wcch --replace-fail '#!/usr/bin/wsh' "#!$out/bin/wsh"
'';
enableParallelBuilding = true;
meta = {
homepage = "https://github.com/endrazine/wcc";
description = "Witchcraft compiler collection: tools to convert and script ELF files";
license = lib.licenses.mit;
platforms = [
"x86_64-linux"
"aarch64-linux"
];
maintainers = with lib.maintainers; [
orivej
DieracDelta
];
};
})

View File

@@ -0,0 +1,42 @@
{
lib,
stdenv,
fetchFromSourcehut,
pkg-config,
libusb1,
}:
stdenv.mkDerivation rec {
pname = "wch-isp";
version = "0.4.1";
src = fetchFromSourcehut {
owner = "~jmaselbas";
repo = "wch-isp";
rev = "v${version}";
hash = "sha256-JB7cvZPzRhYJ8T3QJkguHOzZFrLOft5rRz0F0sVav/k=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libusb1 ];
installFlags = [
"DESTDIR=$(out)"
"PREFIX="
];
installTargets = [
"install"
"install-rules"
];
doInstallCheck = true;
meta = {
description = "Firmware programmer for WCH microcontrollers over USB";
mainProgram = "wch-isp";
license = lib.licenses.gpl2Only;
homepage = "https://git.sr.ht/~jmaselbas/wch-isp";
maintainers = with lib.maintainers; [ lesuisse ];
platforms = lib.platforms.unix;
};
}

View File

@@ -0,0 +1,46 @@
{
stdenv,
lib,
rustPlatform,
fetchCrate,
pkg-config,
libusb1,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "wchisp";
version = "0.3.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-6WNXsRvbldEjAykMn1DCiuKctBrsTHGv1fJuRXBblu0=";
};
cargoHash = "sha256-VC8wiMdg7BnE92m57pKSrtv7vmbRNwV1yyy3f+1e+cY=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libusb1
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Command-line implementation of WCHISPTool, for flashing ch32 MCUs";
homepage = "https://ch32-rs.github.io/wchisp/";
changelog = "https://github.com/ch32-rs/wchisp/releases/tag/v${version}";
license = with lib.licenses; [ gpl2Only ];
platforms = with lib.platforms; linux ++ darwin ++ windows;
broken = !stdenv.hostPlatform.isLinux;
maintainers = with lib.maintainers; [ jwillikers ];
mainProgram = "wchisp";
};
}

View File

@@ -0,0 +1,45 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
blas,
gmp,
lapack,
libf2c,
mpfi,
mpfr,
}:
stdenv.mkDerivation rec {
pname = "wcpg";
version = "0.9";
src = fetchFromGitHub {
owner = "fixif";
repo = "wcpg";
rev = version;
sha256 = "sha256-uA/ENjf4urEO+lqebkp/k54199o2434FYgPSmYCG4UA=";
};
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
blas
gmp
lapack
libf2c
mpfi
mpfr
];
meta = with lib; {
description = "Worst-Case Peak-Gain library";
homepage = "https://github.com/fixif/WCPG";
license = licenses.cecill-b;
platforms = platforms.unix;
maintainers = with maintainers; [ wegank ];
};
}

View File

@@ -0,0 +1,49 @@
{
lib,
stdenv,
fetchurl,
flex,
}:
stdenv.mkDerivation rec {
pname = "wcslib";
version = "8.4";
src = fetchurl {
url = "ftp://ftp.atnf.csiro.au/pub/software/wcslib/${pname}-${version}.tar.bz2";
hash = "sha256-lguERCbRSotTze7XgliqkojN7ZmncywGZ8ZPpqUBJtw=";
};
nativeBuildInputs = [ flex ];
enableParallelBuilding = true;
outputs = [
"out"
"man"
];
# DOCDIR is set to the path $out/share/doc/wcslib, and DOCLINK points
# to the same location.
# `$(LN_S) $(notdir $(DOCDIR)) $(DOCLINK)` effectively running:
# `ln -s wcslib $out/share/doc/wcslib`
# This produces a broken link because the target location already exists
postInstall = ''
rm $out/share/doc/wcslib/wcslib
'';
meta = {
homepage = "https://www.atnf.csiro.au/people/mcalabre/WCS/";
description = "World Coordinate System library for astronomy";
longDescription = ''
Library for world coordinate systems for spherical geometries
and their conversion to image coordinate systems. This is the
standard library for this purpose in astronomy.
'';
maintainers = with lib.maintainers; [
returntoreality
];
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.unix;
};
}