radicle-job: init at 0.3.0
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
})
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p coreutils gnugrep common-updater-scripts nix-update
|
||||
|
||||
version=$(list-git-tags | grep -oP '^releases/v\K\d+\.\d+\.\d+$' | sort -rV | head -1)
|
||||
nix-update --version="$version" radicle-job
|
||||
Reference in New Issue
Block a user