{cronutils,formatjson5,igvm-tooling,uplosi}: add passthru.update-script (#338136)

This commit is contained in:
Paul Meyer 2024-09-09 09:11:28 +02:00 committed by GitHub
commit 47e8b2b2d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 75 additions and 48 deletions

View File

@ -1,14 +1,19 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cronutils";
version = "1.10";
outputs = [ "out" "man" ];
outputs = [
"out"
"man"
];
src = fetchFromGitHub {
owner = "google";
@ -43,12 +48,14 @@ stdenv.mkDerivation (finalAttrs: {
"-Wno-format-nonliteral"
]);
meta = with lib; {
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/google/cronutils/releases/tag/version%2F${finalAttrs.version}";
description = "Utilities to assist running periodic batch processing jobs";
homepage = "https://github.com/google/cronutils";
license = licenses.asl20;
maintainers = with maintainers; [ katexochen ];
platforms = platforms.all;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ katexochen ];
platforms = lib.platforms.all;
};
})

View File

@ -1,8 +1,10 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
@ -19,13 +21,9 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-zPgaZPDyNVPmBXz6QwOYnmh/sbJ8aPST8znLMfIWejk=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
cargoBuildFlags = [
"--example formatjson5"
];
cargoBuildFlags = [ "--example formatjson5" ];
postInstall =
let
@ -35,6 +33,8 @@ rustPlatform.buildRustPackage rec {
install -D target/${cargoTarget}/release/examples/formatjson5 $out/bin/formatjson5
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "JSON5 formatter";
homepage = "https://github.com/google/json5format";

View File

@ -1,9 +1,11 @@
{ lib
, python3
, fetchFromGitHub
, fetchpatch
, which
, acpica-tools
{
lib,
python3,
fetchFromGitHub,
fetchpatch,
which,
acpica-tools,
nix-update-script,
}:
python3.pkgs.buildPythonApplication rec {
@ -38,7 +40,8 @@ python3.pkgs.buildPythonApplication rec {
nativeBuildInputs = [ acpica-tools ];
propagatedBuildInputs = (with python3.pkgs; [
propagatedBuildInputs =
(with python3.pkgs; [
setuptools
ecdsa
cstruct
@ -46,7 +49,8 @@ python3.pkgs.buildPythonApplication rec {
pytest
cached-property
frozendict
]) ++ [
])
++ [
acpica-tools
which
];
@ -58,11 +62,16 @@ python3.pkgs.buildPythonApplication rec {
find $out/share/igvm-tooling/acpi -name "*.dsl" -exec iasl -f {} \;
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "IGVM Image Generator";
homepage = "https://github.com/microsoft/igvm-tooling";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ malt3 katexochen ];
maintainers = with lib.maintainers; [
malt3
katexochen
];
changelog = "https://github.com/microsoft/igvm-tooling/releases/tag/igvm-${version}";
mainProgram = "igvmgen";
platforms = lib.platforms.all;

View File

@ -1,8 +1,11 @@
{ lib
, fetchFromGitHub
, buildGoModule
, installShellFiles
{
lib,
fetchFromGitHub,
buildGoModule,
installShellFiles,
nix-update-script,
}:
buildGoModule rec {
pname = "uplosi";
version = "0.3.0";
@ -17,7 +20,10 @@ buildGoModule rec {
vendorHash = "sha256-o7PPgW3JL47G6Na5n9h3RasRMfU25FD1U/wCMaydRmc=";
CGO_ENABLED = "0";
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
ldflags = [
"-s"
"-X main.version=${version}"
];
nativeBuildInputs = [ installShellFiles ];
@ -28,13 +34,18 @@ buildGoModule rec {
--zsh <($out/bin/uplosi completion zsh)
'';
meta = with lib; {
passthru.updateScript = nix-update-script { };
meta = {
description = "Upload OS images to cloud provider";
homepage = "https://github.com/edgelesssys/uplosi";
changelog = "https://github.com/edgelesssys/uplosi/releases/tag/v${version}";
license = licenses.asl20;
license = lib.licenses.asl20;
mainProgram = "uplosi";
maintainers = with maintainers; [ katexochen malt3 ];
platforms = platforms.unix;
maintainers = with lib.maintainers; [
katexochen
malt3
];
platforms = lib.platforms.unix;
};
}