blob: 14c9e616ccec45c766bac9e5acde4c13df200ccd (
plain)
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
|
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tpi";
version = "1.0.7";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "turing-machines";
repo = "tpi";
tag = "v${finalAttrs.version}";
hash = "sha256-se5+8Zf+RKtvfkmDDxKiUVp5J+bQ9j9RFedDK/pxCgA=";
};
cargoHash = "sha256-neXFAMeo/LG3beNoR9q2gAZhlNrk0T4A5IdqR2cZocs=";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "CLI tool to control your Turing Pi 2 board";
homepage = "https://github.com/turing-machines/tpi";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ WoutSwinkels ];
mainProgram = "tpi";
};
})
|