Skip to content

Commit 9f9d914

Browse files
committed
deepcool-digital-linux: init at 0.8.3-alpha
1 parent 2fa8c95 commit 9f9d914

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
pkg-config,
6+
libudev-zero,
7+
versionCheckHook,
8+
nix-update-script,
9+
}:
10+
rustPlatform.buildRustPackage (finalAttrs: {
11+
pname = "deepcool-digital-linux";
12+
version = "0.8.3-alpha";
13+
14+
src = fetchFromGitHub {
15+
owner = "Nortank12";
16+
repo = "deepcool-digital-linux";
17+
tag = "v${finalAttrs.version}";
18+
hash = "sha256-Whmjd6NCOUkE7hM3FaN7grMwcC/suL7AJDVSgnZSKzM=";
19+
};
20+
21+
cargoHash = "sha256-K1pEbUyENPUS4QK0lztWmw8ov1fGrx8KHdODmSByfek=";
22+
23+
buildInputs = [ libudev-zero ];
24+
25+
nativeBuildInputs = [
26+
pkg-config
27+
];
28+
29+
doInstallCheck = false; # FIXME: version cmd returns 0.8.3, set to true when we switch to a stable version
30+
nativeInstallCheckInputs = [ versionCheckHook ];
31+
versionCheckProgramArg = "--version";
32+
33+
passthru.updateScript = nix-update-script { };
34+
35+
meta = {
36+
changelog = "https://github.com/Nortank12/deepcool-digital-linux/releases/tag/v${finalAttrs.version}";
37+
description = "Linux version for the DeepCool Digital Windows software";
38+
homepage = "https://github.com/Nortank12/deepcool-digital-linux";
39+
license = lib.licenses.gpl3Only;
40+
maintainers = with lib.maintainers; [ NotAShelf ];
41+
mainProgram = "deepcool-digital-linux";
42+
platforms = lib.platforms.linux;
43+
};
44+
})

0 commit comments

Comments
 (0)