Files
nixpkgs/pkgs/by-name/de/deepcool-digital-linux/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
libudev-zero,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "deepcool-digital-linux";
version = "0.8.3-alpha";
src = fetchFromGitHub {
owner = "Nortank12";
repo = "deepcool-digital-linux";
tag = "v${finalAttrs.version}";
hash = "sha256-Whmjd6NCOUkE7hM3FaN7grMwcC/suL7AJDVSgnZSKzM=";
};
cargoHash = "sha256-K1pEbUyENPUS4QK0lztWmw8ov1fGrx8KHdODmSByfek=";
buildInputs = [ libudev-zero ];
nativeBuildInputs = [
pkg-config
];
doInstallCheck = false; # FIXME: version cmd returns 0.8.3, set to true when we switch to a stable version
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/Nortank12/deepcool-digital-linux/releases/tag/v${finalAttrs.version}";
description = "Linux version for the DeepCool Digital Windows software";
homepage = "https://github.com/Nortank12/deepcool-digital-linux";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ NotAShelf ];
mainProgram = "deepcool-digital-linux";
platforms = lib.platforms.linux;
};
})