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
57 lines
1.4 KiB
Nix
57 lines
1.4 KiB
Nix
{
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pkg-config,
|
|
lib,
|
|
udev,
|
|
udevCheckHook,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rust-streamdeck";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ryankurte";
|
|
repo = "rust-streamdeck";
|
|
tag = "v${version}";
|
|
hash = "sha256-9FuTnRQHKYJzMqhhgyTVq2R+drn4HAr3GDNjQgc3r+w=";
|
|
};
|
|
|
|
cargoPatches = [
|
|
(fetchpatch {
|
|
name = "add_cargo_lock.patch";
|
|
url = "https://github.com/ryankurte/rust-streamdeck/commit/d8497c34898daebafca21885f464f241c29ff9d7.patch";
|
|
hash = "sha256-cwt4nvtuME//t9KpHgIXHCwLQgpybs2CqV2jO02umfE=";
|
|
})
|
|
];
|
|
|
|
cargoHash = "sha256-OiXpG45jwWydbpRHnbIlECOaa75CzUOmdWxZ3WE5+hY=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
udevCheckHook
|
|
];
|
|
buildInputs = [ udev ];
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
|
|
|
|
postInstall = ''
|
|
install -Dm444 40-streamdeck.rules -t $out/lib/udev/rules.d/
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "ibusb based driver for Elgato StreamDeck devices";
|
|
homepage = "https://github.com/ryankurte/rust-streamdeck";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = [ lib.maintainers.gdifolco ];
|
|
mainProgram = "streamdeck-cli";
|
|
};
|
|
}
|