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,51 @@
{
lib,
stdenvNoCC,
buildFHSEnv,
fetchurl,
}:
let
fhs = buildFHSEnv {
name = "fhs-shell";
};
in
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "c2000-cgt";
version = "22.6.1.LTS";
src = fetchurl {
url = "https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-xqxJ05PLfM/${finalAttrs.version}/ti_cgt_c2000_${finalAttrs.version}_linux-x64_installer.bin";
hash = "sha256-h+exdlyD7Bj3LZTDVME8jHesInaUUUUmFiIKJR+rM9o=";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
mkdir -p /build/
cp -a $src /build/installer.bin
chmod +x /build/installer.bin
${fhs}/bin/fhs-shell -c '/build/installer.bin --mode unattended --prefix /build/ti'
mv /build/ti/ti-cgt-c2000_${finalAttrs.version} $out
runHook postInstall
'';
meta = {
description = "C28x/CLA code generation tools (CGT) - compiler";
longDescription = ''
The TI C28x code generation tools (C2000-CGT) facilitate the development of applications
for TI C28x microcontroller platforms. The platforms include the Concerto (F28M3xx),
Piccolo (280xx), Delfino floating-point (283xx), and C28x fixed-point (2823x/280x/281x) device families.
'';
homepage = "https://www.ti.com/tool/C2000-CGT";
changelog = "https://software-dl.ti.com/codegen/esd/cgt_public_sw/C2000/${finalAttrs.version}/README.html";
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ teczito ];
mainProgram = "cl2000";
platforms = [ "x86_64-linux" ];
};
})

View File

@@ -0,0 +1,61 @@
{
lib,
fetchFromGitHub,
cmake,
llvmPackages_18,
unstableGitUpdater,
}:
let
c2ffiBranch = "llvm-18.1.0";
llvmPackages = llvmPackages_18;
in
llvmPackages.stdenv.mkDerivation {
pname = "c2ffi-${c2ffiBranch}";
version = "0-unstable-2024-04-20";
src = fetchFromGitHub {
owner = "rpav";
repo = "c2ffi";
rev = "0de81efb64acc82c08c5eee4a7108ddcb1b00d86";
hash = "sha256-q81Vxq/6h/5jgQ1Leq15klN/8L+UiavlxkARGo2SrJ0=";
};
passthru.updateScript = unstableGitUpdater {
url = "https://github.com/rpav/c2ffi.git";
branch = c2ffiBranch;
# Tags only exist for older LLVM versions, so they would result in nonsense names
# like: c2ffi-llvm-16.0.0-11.0.0.0-unstable-YYYY-MM-DD
hardcodeZeroVersion = true;
};
nativeBuildInputs = [
cmake
];
buildInputs = [
llvmPackages.llvm
llvmPackages.clang
llvmPackages.libclang
];
# This isn't much, but...
doInstallCheck = true;
installCheckPhase = ''
$out/bin/c2ffi --help 2>&1 >/dev/null
'';
# LLVM may be compiled with -fno-rtti, so let's just turn it off.
# A mismatch between lib{clang,LLVM}* and us can lead to the link time error:
# undefined reference to `typeinfo for clang::ASTConsumer'
env.CXXFLAGS = "-fno-rtti";
meta = with lib; {
homepage = "https://github.com/rpav/c2ffi";
description = "LLVM based tool for extracting definitions from C, C++, and Objective C header files for use with foreign function call interfaces";
mainProgram = "c2ffi";
license = licenses.lgpl21Only;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,43 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nixosTests,
}:
buildGoModule rec {
pname = "c2FmZQ";
version = "0.4.32";
src = fetchFromGitHub {
owner = "c2FmZQ";
repo = "c2FmZQ";
rev = "v${version}";
hash = "sha256-1FIGA4pmMb4o6H6GmsiSt/UG2PaC6QR3+L9QKhT8sJQ=";
};
ldflags = [
"-s"
"-w"
];
sourceRoot = "${src.name}/c2FmZQ";
vendorHash = "sha256-usMM9YU+xW+6X5W6rCOtXeggK/WCcik0s+4dFAfbozM=";
subPackages = [
"c2FmZQ-client"
"c2FmZQ-server"
];
passthru.tests = { inherit (nixosTests) c2fmzq; };
meta = with lib; {
description = "Securely encrypt, store, and share files, including but not limited to pictures and videos";
homepage = "https://github.com/c2FmZQ/c2FmZQ";
license = licenses.gpl3Only;
mainProgram = "c2FmZQ-server";
maintainers = with maintainers; [ hmenke ];
platforms = platforms.linux;
};
}

View File

@@ -0,0 +1,21 @@
{
lib,
buildNimPackage,
fetchFromGitHub,
}:
buildNimPackage (finalAttrs: {
pname = "c2nim";
version = "0.9.19";
src = fetchFromGitHub {
owner = "nim-lang";
repo = "c2nim";
rev = finalAttrs.version;
hash = "sha256-E8sAhTFIWAnlfWyuvqK8h8g7Puf5ejLEqgLNb5N17os=";
};
meta = finalAttrs.src.meta // {
description = "Tool to translate Ansi C code to Nim";
mainProgram = "c2nim";
license = lib.licenses.mit;
};
})

View File

@@ -0,0 +1,66 @@
{
lib,
fetchFromGitHub,
rustPlatform,
openssl,
pkg-config,
git,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "c2patool";
version = "0.23.4";
src = fetchFromGitHub {
owner = "contentauth";
repo = "c2pa-rs";
tag = "c2patool-v${finalAttrs.version}";
hash = "sha256-6y7IKuYnwSSrfe44U+fNU8Q9YdHOq2Btvie6ZqTIBRw=";
};
cargoHash = "sha256-JnbvX/EkvatP/xlY+cTtRjVV+Rz2jjFIsqIvOFXqB5Q=";
# use the non-vendored openssl
env.OPENSSL_NO_VENDOR = 1;
nativeBuildInputs = [
git
pkg-config
];
buildInputs = [ openssl ];
# could not compile `c2pa` (lib test) due to 102 previous errors
doCheck = false;
checkFlags = [
# These tests rely on additional executables to be compiled to "target/debug/".
"--skip=test_fails_for_external_signer_failure"
"--skip=test_fails_for_external_signer_success_without_stdout"
"--skip=test_succeed_using_example_signer"
# These tests require network access to "http://timestamp.digicert.com", which is disabled in a sandboxed build.
"--skip=test_manifest_config"
"--skip=test_fails_for_not_found_external_signer"
"--skip=tool_embed_jpeg_report"
"--skip=tool_embed_jpeg_with_ingredients_report"
"--skip=tool_similar_extensions_match"
"--skip=tool_test_manifest_ingredient_json"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
description = "Command line tool for working with C2PA manifests and media assets";
homepage = "https://github.com/contentauth/c2pa-rs/tree/main/cli";
license = with lib.licenses; [
asl20 # or
mit
];
maintainers = with lib.maintainers; [ ok-nick ];
mainProgram = "c2patool";
};
})