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
56 lines
1.5 KiB
Nix
56 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromRadicle,
|
|
fetchRadiclePatch,
|
|
radicle-node,
|
|
gitMinimal,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "radicle-job";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromRadicle {
|
|
seed = "iris.radicle.xyz";
|
|
repo = "z2UcCU1LgMshWvXj6hXSDDrwB8q8M";
|
|
tag = "releases/v${finalAttrs.version}";
|
|
hash = "sha256-6UrkKyIdSM5lSYNF/A3xIf3FGiM2pB/5s7F49jtn0KE=";
|
|
};
|
|
|
|
patches = [
|
|
# https://app.radicle.xyz/nodes/rosa.radicle.xyz/rad:z2UcCU1LgMshWvXj6hXSDDrwB8q8M/patches/dac4fef89d07fe609dd5d3d75ea57f76f1cca3dc
|
|
(fetchRadiclePatch {
|
|
inherit (finalAttrs.src) seed repo;
|
|
revision = "dac4fef89d07fe609dd5d3d75ea57f76f1cca3dc";
|
|
hash = "sha256-oFUkiBIqAa/DWqlTZw0LzHbgK/uhWik8qbRcGcGpkDY=";
|
|
})
|
|
];
|
|
|
|
cargoHash = "sha256-5GjLqs4ol7lUE96KwtE7W3lxL9H/A/0yDpiMDiLQDeY=";
|
|
|
|
nativeCheckInputs = [
|
|
radicle-node
|
|
gitMinimal
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = {
|
|
description = "Create, update, and query Radicle Job Collaborative Objects";
|
|
homepage = "https://app.radicle.xyz/nodes/iris.radicle.xyz/rad:z2UcCU1LgMshWvXj6hXSDDrwB8q8M";
|
|
changelog = "https://app.radicle.xyz/nodes/iris.radicle.xyz/rad:z2UcCU1LgMshWvXj6hXSDDrwB8q8M/tree/CHANGELOG.md";
|
|
license = with lib.licenses; [
|
|
mit
|
|
asl20
|
|
];
|
|
maintainers = with lib.maintainers; [ defelo ];
|
|
mainProgram = "rad-job";
|
|
};
|
|
})
|