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,34 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "nray";
version = "1.1.0";
src = fetchFromGitHub {
owner = "nray-scanner";
repo = "nray";
tag = "v${version}";
hash = "sha256-N78Bm/Le+pbA8hvDaUbjQpcdRlM0RKXnXyjOB8Nz3AE=";
};
vendorHash = "sha256-hCFFMSaT73Wx54KayuFc2xJRGp0p10Pn93N8t4Xad8g=";
ldflags = [
"-s"
"-w"
];
meta = {
description = "Distributed port scanner";
homepage = "https://github.com/nray-scanner/nray";
changelog = "https://github.com/nray-scanner/nray/releases/tag/v${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "nray";
platforms = lib.platforms.linux;
};
}

View File

@@ -0,0 +1,80 @@
{
lib,
stdenv,
fetchurl,
autoPatchelfHook,
udev,
libusb1,
segger-jlink,
}:
let
supported = {
x86_64-linux = {
name = "linux-amd64";
hash = "sha256-zL9tXl2HsO8JZXEGsjg4+lDJJz30StOMH96rU7neDsg=";
};
aarch64-linux = {
name = "linux-arm64";
hash = "sha256-ACy3rXsvBZNVXdVkpP2AqrsoqKPliw6m9UUWrFOCBzs=";
};
armv7l-linux = {
name = "linux-armhf";
hash = "sha256-nD1pHL/SQqC7OlxuovWwvtnXKMmhfx5qFaF4ti8gh8g=";
};
};
platform = supported.${stdenv.system} or (throw "unsupported platform ${stdenv.system}");
version = "10.23.2";
url =
let
versionWithDashes = builtins.replaceStrings [ "." ] [ "-" ] version;
in
"https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-${lib.versions.major version}-x-x/${versionWithDashes}/nrf-command-line-tools-${version}_${platform.name}.tar.gz";
in
stdenv.mkDerivation {
pname = "nrf-command-line-tools";
inherit version;
src = fetchurl {
inherit url;
inherit (platform) hash;
};
runtimeDependencies = [
segger-jlink
];
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
udev
libusb1
];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
rm -rf ./python
mkdir -p $out
cp -r * $out
runHook postInstall
'';
meta = with lib; {
description = "Nordic Semiconductor nRF Command Line Tools";
homepage = "https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools";
license = licenses.unfree;
platforms = attrNames supported;
maintainers = with maintainers; [ stargate01 ];
};
}

View File

@@ -0,0 +1,41 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
gitUpdater,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "nrf-udev";
version = "1.0.1";
src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = "nrf-udev";
rev = "v${finalAttrs.version}";
hash = "sha256-bEIAsz9ZwX6RTzhv5/waFZ5a3KlnwX4kQs29+475zN0=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r nrf-udev_*/lib $out
runHook postInstall
'';
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = with lib; {
description = "Udev rules for nRF (Nordic Semiconductor) development kits";
homepage = "https://github.com/NordicSemiconductor/nrf-udev";
changelog = "https://github.com/NordicSemiconductor/nrf-udev/releases/tag/${finalAttrs.src.rev}";
license = licenses.unfree;
platforms = platforms.all;
maintainers = with maintainers; [ h7x4 ];
};
})

View File

@@ -0,0 +1,38 @@
{
lib,
stdenv,
fetchzip,
}:
stdenv.mkDerivation rec {
pname = "nrf5-sdk";
version = "17.1.0";
urlHash = "ddde560";
src = fetchzip {
url = "https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/sdks/nrf5/binaries/nrf5_sdk_${version}_${urlHash}.zip";
sha256 = "sha256-q4WQ7X7/z/42/qcii+mOLnobqcbUy0tInkOfRH/Gwus=";
};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/nRF5_SDK
mv * $out/share/nRF5_SDK
rm $out/share/nRF5_SDK/*.msi
runHook postInstall
'';
meta = with lib; {
description = "Nordic Semiconductor nRF5 Software Development Kit";
homepage = "https://www.nordicsemi.com/Products/Development-software/nRF5-SDK";
license = licenses.unfree;
platforms = platforms.all;
maintainers = with maintainers; [ stargate01 ];
};
}

View File

@@ -0,0 +1,48 @@
{
lib,
fetchurl,
appimageTools,
segger-jlink-headless,
libxshmfence,
}:
let
pname = "nrfconnect-bluetooth-low-energy";
version = "4.0.4";
src = fetchurl {
url = "https://github.com/NordicPlayground/pc-nrfconnect-ble-standalone/releases/download/v${version}/nrfconnect-bluetooth-low-energy-${version}-x86_64.AppImage";
hash = "sha256-mL8ky/cYjNgfUJgE7W5LFK/w7Ky9Xx6E84UT668HRAk=";
name = "${pname}-${version}.AppImage";
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraPkgs = pkgs: [
segger-jlink-headless
libxshmfence
];
extraInstallCommands = ''
install -Dm444 ${appimageContents}/nrfconnect-bluetooth-low-energy.desktop -t $out/share/applications
install -Dm444 ${appimageContents}/usr/share/icons/hicolor/512x512/apps/nrfconnect-bluetooth-low-energy.png \
-t $out/share/icons/hicolor/512x512/apps
substituteInPlace $out/share/applications/nrfconnect-bluetooth-low-energy.desktop \
--replace-fail 'Exec=AppRun' 'Exec=nrfconnect-bluetooth-low-energy'
'';
meta = {
description = "Nordic Semiconductor Bluetooth low energy app for nRF Connect for Desktop";
homepage = "https://docs.nordicsemi.com/bundle/nrf-connect-ble/page/index.html";
license = lib.licenses.unfree;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ stargate01 ];
mainProgram = "nrfconnect-bluetooth-low-energy";
};
}

View File

@@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchurl,
appimageTools,
segger-jlink-headless,
}:
let
pname = "nrfconnect";
version = "5.1.0";
src = fetchurl {
url = "https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-connect-for-desktop/${lib.versions.major version}-${lib.versions.minor version}-${lib.versions.patch version}/nrfconnect-${version}-x86_64.appimage";
hash = "sha256-QEoKIdi8tlZ86langbCYJXSO+dGONBEQPdwmREIhZBA=";
name = "${pname}-${version}.AppImage";
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraPkgs = pkgs: [
segger-jlink-headless
];
extraInstallCommands = ''
install -Dm444 ${appimageContents}/nrfconnect.desktop -t $out/share/applications
install -Dm444 ${appimageContents}/usr/share/icons/hicolor/512x512/apps/nrfconnect.png \
-t $out/share/icons/hicolor/512x512/apps
substituteInPlace $out/share/applications/nrfconnect.desktop \
--replace-fail 'Exec=AppRun' 'Exec=nrfconnect'
'';
meta = {
description = "Nordic Semiconductor nRF Connect for Desktop";
homepage = "https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-desktop";
license = lib.licenses.unfree;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ stargate01 ];
mainProgram = "nrfconnect";
};
}

View File

@@ -0,0 +1,70 @@
{
lib,
stdenvNoCC,
fetchurl,
zlib,
libusb1,
segger-jlink-headless,
gcc,
autoPatchelfHook,
versionCheckHook,
}:
let
source = import ./source.nix;
supported = removeAttrs source [ "version" ];
platform = supported.${stdenvNoCC.system} or (throw "unsupported platform ${stdenvNoCC.system}");
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "nrfutil";
inherit (source) version;
src = fetchurl {
url = "https://files.nordicsemi.com/artifactory/swtools/external/nrfutil/packages/nrfutil/nrfutil-${platform.name}-${finalAttrs.version}.tar.gz";
inherit (platform) hash;
};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
zlib
libusb1
gcc.cc.lib
segger-jlink-headless
];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out
mv data/* $out/
runHook postInstall
'';
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "CLI tool for managing Nordic Semiconductor devices";
homepage = "https://www.nordicsemi.com/Products/Development-tools/nRF-Util";
changelog = "https://docs.nordicsemi.com/bundle/nrfutil/page/guides/revision_history.html";
license = licenses.unfree;
platforms = lib.attrNames supported;
maintainers = with maintainers; [
h7x4
ezrizhu
];
mainProgram = "nrfutil";
};
})

View File

@@ -0,0 +1,7 @@
{
version = "7.13.0";
x86_64-linux = {
name = "x86_64-unknown-linux-gnu";
hash = "sha256-R3OF/340xEab+0zamfwvejY16fjy/3TrzMvQaBlVxHw=";
};
}

View File

@@ -0,0 +1,35 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p jq nix nix-prefetch-github
nixpkgs="$(git rev-parse --show-toplevel || (printf 'Could not find root of nixpkgs repo\nAre we running from within the nixpkgs git repo?\n' >&2; exit 1))"
narhash() {
nix --extra-experimental-features nix-command store prefetch-file --json "$1" | jq -r .hash
}
set -euo pipefail
declare -A architectures
declare -A versions
declare -A hashes
architectures["x86_64-linux"]="x86_64-unknown-linux-gnu"
BASE_URL="https://files.nordicsemi.com/artifactory/swtools/external/nrfutil"
for a in ${!architectures[@]}; do
versions["$a"]=$(curl "$BASE_URL/index/${architectures[${a}]}/index.json" | jq -r '.packages.nrfutil.latest_version')
hashes["$a"]=$(narhash "$BASE_URL/packages/nrfutil/nrfutil-${architectures[${a}]}-${versions[${a}]}.tar.gz")
done
{
printf "{\n"
printf " version = \"${versions["x86_64-linux"]}\";\n"
for a in ${!architectures[@]}; do
printf " ${a} = {\n"
printf " name = \"${architectures[${a}]}\";\n"
printf " hash = \"${hashes[${a}]}\";\n"
printf " };\n"
done
printf "}\n"
} > "${nixpkgs}/pkgs/by-name/nr/nrfutil/source.nix"

View File

@@ -0,0 +1,11 @@
Support building with compilers such as Clang.
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
all: nrg2iso.c
- gcc nrg2iso.c -o nrg2iso
+ cc nrg2iso.c -o nrg2iso
clean:
rm -f nrg2iso

View File

@@ -0,0 +1,30 @@
{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nrg2iso";
version = "0.4.1";
src = fetchurl {
url = "http://gregory.kokanosky.free.fr/v4/linux/nrg2iso-${finalAttrs.version}.tar.gz";
hash = "sha256-O+NqQWdY/BkQRztJqNrfKiqj1R8ZdhlzNrwXS8HjBuU=";
};
patches = [ ./c-compiler.patch ];
installPhase = ''
mkdir -pv $out/bin/
cp -v nrg2iso $out/bin/nrg2iso
'';
meta = {
description = "Linux utils for converting CD (or DVD) image generated by Nero Burning Rom to ISO format";
homepage = "http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.all;
mainProgram = "nrg2iso";
};
})

View File

@@ -0,0 +1,54 @@
{
lib,
buildNimPackage,
fetchFromGitHub,
fetchpatch,
makeWrapper,
nim,
pcre,
tinycc,
}:
buildNimPackage {
pname = "nrpl";
version = "20150522";
src = fetchFromGitHub {
owner = "wheineman";
repo = "nrpl";
rev = "6d6c189ab7d1c905cc29dc678d66e9e132026f69";
hash = "sha256-YpP1LJKX3cTPficoBUBGnUETwQX5rDCyIMxylSFNnrI=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ pcre ];
patches = [
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/wheineman/nrpl/pull/12.patch";
name = "update_for_new_nim.patch";
hash = "sha256-4fFj1RAxvQC9ysRBFlbEfMRPCzi+Rcu6lYEOC208zv0=";
})
];
NIX_LDFLAGS = "-lpcre";
postFixup = ''
wrapProgram $out/bin/nrpl \
--prefix PATH : ${
lib.makeBinPath [
nim
tinycc
]
}
'';
meta = with lib; {
description = "REPL for the Nim programming language";
mainProgram = "nrpl";
homepage = "https://github.com/wheineman/nrpl";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
platforms = with platforms; linux ++ darwin;
};
}

View File

@@ -0,0 +1,35 @@
{
lib,
rustPlatform,
fetchFromGitHub,
enableLTO ? true,
nrxAlias ? true,
}:
rustPlatform.buildRustPackage rec {
pname = "nrr";
version = "0.10.3";
src = fetchFromGitHub {
owner = "ryanccn";
repo = "nrr";
rev = "v${version}";
hash = "sha256-RBKFDm6MpK2lDCUvbX0EFEuOASKtHM+5QknWM0A6AKE=";
};
cargoHash = "sha256-DiapeSFfsmox+Utx9uW/8/veEQcnWmoaETLNyffpv64=";
env = lib.optionalAttrs enableLTO {
CARGO_PROFILE_RELEASE_LTO = "fat";
CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
};
postInstall = lib.optionalString nrxAlias "ln -s $out/bin/nr{r,x}";
meta = with lib; {
description = "Minimal, blazing fast npm scripts runner";
homepage = "https://github.com/ryanccn/nrr";
maintainers = with maintainers; [ ryanccn ];
license = licenses.gpl3Only;
mainProgram = "nrr";
};
}

View File

@@ -0,0 +1,72 @@
{
lib,
stdenv,
fetchFromGitHub,
autoconf,
automake,
libtool,
cmake,
rtl-sdr,
libao,
fftwFloat,
}:
let
src_faad2 = fetchFromGitHub {
owner = "knik0";
repo = "faad2";
tag = "2.11.2";
hash = "sha256-JvmblrmE3doUMUwObBN2b+Ej+CDBWNemBsyYSCXGwo8=";
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "nrsc5";
version = "3.0.1";
src = fetchFromGitHub {
owner = "theori-io";
repo = "nrsc5";
rev = "v${finalAttrs.version}";
hash = "sha256-chLoCXbEQaIrSHLQAm0++NGNYuQNCseSCR37qjXwW04=";
};
postUnpack = ''
export srcRoot=`pwd`
export faadSrc="$srcRoot/faad2-prefix/src/faad2_external"
mkdir -p $faadSrc
cp -r ${src_faad2}/* $faadSrc
chmod -R u+w $faadSrc
'';
postPatch = ''
sed -i '/GIT_REPOSITORY/d' CMakeLists.txt
sed -i '/GIT_TAG/d' CMakeLists.txt
sed -i "s:set (FAAD2_PREFIX .*):set (FAAD2_PREFIX \"$srcRoot/faad2-prefix\"):" CMakeLists.txt
'';
nativeBuildInputs = [
cmake
autoconf
automake
libtool
];
buildInputs = [
rtl-sdr
libao
fftwFloat
];
cmakeFlags = [
"-DUSE_COLOR=ON"
"-DUSE_FAAD2=ON"
];
meta = with lib; {
homepage = "https://github.com/theori-io/nrsc5";
description = "HD-Radio decoder for RTL-SDR";
platforms = lib.platforms.linux;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ markuskowa ];
mainProgram = "nrsc5";
};
})