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,41 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule rec {
pname = "hcdiag";
version = "0.5.9";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "hcdiag";
tag = "v${version}";
hash = "sha256-OLL7yrlVacw51NyroW6kalqXDrw3YKwBTPThiCYUjuw=";
};
vendorHash = "sha256-ZuG++2bItCdnTcSaeBumIS2DqF+U6ZP7UTYM2DC+YGw=";
nativeInstallCheckHooks = [
versionCheckHook
];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Collects and bundles product and platform diagnostics supporting Consul, Nomad, TFE, and Vault";
homepage = "https://github.com/hashicorp/hcdiag";
changelog = "https://github.com/hashicorp/hcdiag/raw/v${version}/CHANGELOG.md";
license = lib.licenses.mpl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ethancedwards8 ];
mainProgram = "hcdiag";
};
}

View File

@@ -0,0 +1,63 @@
{
crun,
haskell,
haskellPackages,
lib,
makeWrapper,
stdenv,
emptyDirectory,
}:
let
inherit (haskell.lib.compose)
overrideCabal
addBuildTools
justStaticExecutables
appendConfigureFlags
;
inherit (lib) makeBinPath;
bundledBins = lib.optional stdenv.hostPlatform.isLinux crun;
overrides = old: {
hercules-ci-agent = overrideCabal (o: {
isLibrary = true;
isExecutable = false;
postInstall = ""; # ignore completions
enableSharedExecutables = false;
buildTarget = "lib:hercules-ci-agent hercules-ci-agent-unit-tests";
configureFlags = o.configureFlags or [ ] ++ [
"--bindir=${emptyDirectory}/hercules-ci-built-without-binaries/no-bin"
];
}) old.hercules-ci-agent;
};
pkg =
# justStaticExecutables is needed due to https://github.com/NixOS/nix/issues/2990
overrideCabal
(o: {
postInstall = ''
${o.postInstall or ""}
mkdir -p $out/libexec
mv $out/bin/hci $out/libexec
makeWrapper $out/libexec/hci $out/bin/hci --prefix PATH : ${lib.escapeShellArg (makeBinPath bundledBins)}
'';
})
(
addBuildTools [ makeWrapper ]
# TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013
(
(
if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then
lib.id
else
haskell.lib.compose.justStaticExecutables
)
(haskellPackages.hercules-ci-cli.override overrides)
)
);
in
pkg
// {
meta = pkg.meta // {
position = toString ./package.nix + ":1";
};
}

View File

@@ -0,0 +1,37 @@
{
lib,
rustPlatform,
fetchFromGitHub,
cmake,
}:
rustPlatform.buildRustPackage rec {
pname = "hck";
version = "0.11.4";
src = fetchFromGitHub {
owner = "sstadick";
repo = "hck";
rev = "v${version}";
hash = "sha256-XnkLKslZY2nvjO5ZeTIBJ0Y47/JPhfIS/F5KKqm5iwI=";
};
cargoHash = "sha256-NKyBC/kD2tq61su7tUsSPQ2Rr4YBYUsotL55aCoFNGw=";
nativeBuildInputs = [ cmake ];
meta = {
description = "Close to drop in replacement for cut that can use a regex delimiter instead of a fixed string";
homepage = "https://github.com/sstadick/hck";
changelog = "https://github.com/sstadick/hck/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [
mit # or
unlicense
];
maintainers = with lib.maintainers; [
figsoda
gepbird
];
mainProgram = "hck";
};
}

View File

@@ -0,0 +1,29 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "hcl2json";
version = "0.6.8";
src = fetchFromGitHub {
owner = "tmccombs";
repo = "hcl2json";
rev = "v${version}";
sha256 = "sha256-jE106vWj1uVPmN9iofg/sWZCpSYDyh2/SHwPg5xHatE=";
};
vendorHash = "sha256-W5SKD0q3AdIE9Hihnwu6MGoXk1EgBo6ipZaQ73u2tLU=";
subPackages = [ "." ];
meta = with lib; {
description = "Convert hcl2 to json";
homepage = "https://github.com/tmccombs/hcl2json";
license = licenses.asl20;
maintainers = [ ];
mainProgram = "hcl2json";
};
}

View File

@@ -0,0 +1,27 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "hcledit";
version = "0.2.17";
src = fetchFromGitHub {
owner = "minamijoyo";
repo = "hcledit";
rev = "v${version}";
hash = "sha256-4PBEcOK16YXQhrQ6Yrtcb6vTE6h6sSY3Ymuxi+mEUt8=";
};
vendorHash = "sha256-d1cxzGVBOwNAoOxGanRJas4jocxj6B6k5C1hxZi7/Ak=";
meta = with lib; {
description = "Command line editor for HCL";
mainProgram = "hcledit";
homepage = "https://github.com/minamijoyo/hcledit";
license = licenses.mit;
maintainers = with maintainers; [ aleksana ];
};
}

View File

@@ -0,0 +1,32 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "hclfmt";
version = "2.24.0";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "hcl";
tag = "v${finalAttrs.version}";
hash = "sha256-YWGd2rQXJ4AX8nhByYRdp+91PJeHrdCpxvKQntxzRhY=";
};
vendorHash = "sha256-5yGTuv19XyXsZcaHKXr/mYqKRufkJBaYMICFwMP/p3g=";
# The code repository includes other tools which are not useful. Only build
# hclfmt.
subPackages = [ "cmd/hclfmt" ];
meta = {
description = "Code formatter for the Hashicorp Configuration Language (HCL) format";
homepage = "https://github.com/hashicorp/hcl/tree/main/cmd/hclfmt";
changelog = "https://github.com/hashicorp/hcl/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mpl20;
mainProgram = "hclfmt";
maintainers = with lib.maintainers; [ zimbatm ];
};
})

View File

@@ -0,0 +1,49 @@
{
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
pname = "hcloud";
version = "1.54.0";
src = fetchFromGitHub {
owner = "hetznercloud";
repo = "cli";
tag = "v${version}";
hash = "sha256-PpCEdhEjfd7d8DdU2ABAjL8O98cLR20xWwhcESJK4uI=";
};
vendorHash = "sha256-tJwd/qLs0QvnjKi0B2NBTosGt7qCzJCHxZ5LYJB4vjA=";
ldflags = [
"-s"
"-w"
"-X=github.com/hetznercloud/cli/internal/version.Version=${version}"
];
subPackages = [ "cmd/hcloud" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
for shell in bash fish zsh; do
$out/bin/hcloud completion $shell > hcloud.$shell
installShellCompletion hcloud.$shell
done
'';
meta = {
changelog = "https://github.com/hetznercloud/cli/releases/tag/v${version}";
description = "Command-line interface for Hetzner Cloud, a provider for cloud virtual private servers";
mainProgram = "hcloud";
homepage = "https://github.com/hetznercloud/cli";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
zauberpony
techknowlogick
];
};
}

View File

@@ -0,0 +1,38 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
hcp,
}:
buildGoModule rec {
pname = "hcp";
version = "0.10.0";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "hcp";
tag = "v${version}";
hash = "sha256-uiPNHrhMwYLB7ANgcJwfupvya/pUUQICm48/Vac8s40=";
};
vendorHash = "sha256-Tq7Lu9rZCLpy7CiZQey5/y1hZPEvdSsy1BgEFWNVeAk=";
preCheck = ''
export HOME=$TMPDIR
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "HashiCorp Cloud Platform CLI";
homepage = "https://github.com/hashicorp/hcp";
changelog = "https://github.com/hashicorp/hcp/releases/tag/v${version}";
mainProgram = "hcp";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
dbreyfogle
];
};
}

View File

@@ -0,0 +1,35 @@
{
lib,
stdenv,
fetchFromGitHub,
openssl,
libpcap,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hcxdumptool";
version = "7.0.1";
src = fetchFromGitHub {
owner = "ZerBea";
repo = "hcxdumptool";
tag = finalAttrs.version;
hash = "sha256-ABbhhojg4PJlK7xwPW8m7ExQym6hrZmKBsqxnGrjA8A=";
};
buildInputs = [
openssl
libpcap
];
installFlags = [ "PREFIX=$(out)" ];
meta = {
homepage = "https://github.com/ZerBea/hcxdumptool";
description = "Small tool to capture packets from wlan devices";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ danielfullmer ];
mainProgram = "hcxdumptool";
};
})

View File

@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
curl,
openssl,
zlib,
}:
stdenv.mkDerivation rec {
pname = "hcxtools";
version = "7.0.1";
src = fetchFromGitHub {
owner = "ZerBea";
repo = "hcxtools";
rev = version;
sha256 = "sha256-WV5+1PQF999qSIMrIYApmIx6C+ovbKOtJDFglzxzSB4=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
curl
openssl
zlib
];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
meta = with lib; {
description = "Tools for capturing wlan traffic and conversion to hashcat and John the Ripper formats";
homepage = "https://github.com/ZerBea/hcxtools";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ dywedir ];
};
}