wrkflw: 0.7.3 -> 0.8.0 (#512536)

This commit is contained in:
Vladimír Čunát
2026-05-20 10:49:19 +00:00
committed by GitHub
+28 -7
View File
@@ -3,34 +3,55 @@
rustPlatform,
fetchFromGitHub,
pkg-config,
git,
openssl,
docker,
versionCheckHook,
writableTmpDirAsHomeHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "wrkflw";
version = "0.7.3";
version = "0.8.0";
src = fetchFromGitHub {
owner = "bahdotsh";
repo = "wrkflw";
rev = "v${finalAttrs.version}";
hash = "sha256-VwB8qpCNyuB28XqIUJa+ghtZ4Dx1QYDluw6+zxtePIQ=";
hash = "sha256-2k2U90Sqe0AOmOMDfy9CPwlHx6pACZ4dKNO7P5IdRvo=";
};
cargoHash = "sha256-lZ2dcR33fzIUX8XvJMcysQWSViWD1hpm471wkpD22QA=";
cargoHash = "sha256-fp+JFrIcnWXA9SyyVrjX/0nJdLnbySAN0c1VrTeRmMA=";
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
git
];
buildInputs = [
openssl
docker
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
# Prepare the necessary environment for the tests
preCheck = ''
git init -b main
git add .
git -c user.name="John Smith" -c user.email=john.smith@example.com commit -m "initial commit"
'';
passthru.updateScript = nix-update-script { };
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
writableTmpDirAsHomeHook
];
__darwinAllowLocalNetworking = true;
sandboxProfile = ''
(allow mach-lookup
(global-name "com.apple.SystemConfiguration.configd")
(global-name "com.apple.FSEvents"))
'';
passthru.updateScript = nix-update-script { extraArgs = [ "--use-github-releases" ]; };
meta = {
description = "Validate and execute GitHub Actions workflows locally";