-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathpackage.nix
More file actions
51 lines (42 loc) · 1.5 KB
/
package.nix
File metadata and controls
51 lines (42 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
lib,
flake,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "chainlink";
version = "1.6.0";
src = fetchFromGitHub {
owner = "dollspace-gay";
repo = "chainlink";
rev = "chainlink-${version}";
hash = "sha256-2n+cM1ADmeDrKZKjMY5Ct4mVxl38as4iu1Y4ZSCuBho=";
};
# The Rust crate is in the chainlink subdirectory
cargoRoot = "chainlink";
buildAndTestSubdir = "chainlink";
cargoHash = "sha256-WmV6PRSuzdoCMXy4LMSMdHsSbI+A8jx89lwUt64DWmc=";
# Upstream Cargo.toml version doesn't match release tags, and is sporadically
# updated; replace it with the package version being careful to only update
# within [package].
postPatch = ''
sed -i '/^\[package\]/,/^\[/{s/^version = ".*"/version = "${lib.versions.pad 3 version}"/}' chainlink/Cargo.toml
'';
# Tests require a writable filesystem
doCheck = false;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.category = "Workflow & Project Management";
meta = with lib; {
description = "Simple, lean issue tracker CLI designed for AI-assisted development";
homepage = "https://github.com/dollspace-gay/chainlink";
changelog = "https://github.com/dollspace-gay/chainlink/releases/tag/chainlink-${version}";
license = licenses.mit;
sourceProvenance = with sourceTypes; [ fromSource ];
maintainers = with flake.lib.maintainers; [ Chickensoupwithrice ];
mainProgram = "chainlink";
platforms = platforms.all;
};
}