turnon: init at 1.6.1 (#350284)

This commit is contained in:
Aleksana 2024-12-08 09:46:34 +08:00 committed by GitHub
commit 7ade458577
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,52 @@
{
lib,
fetchFromGitHub,
rustPlatform,
cairo,
pango,
pkg-config,
libadwaita,
blueprint-compiler,
wrapGAppsHook4,
}:
rustPlatform.buildRustPackage rec {
pname = "turnon";
version = "1.6.1";
src = fetchFromGitHub {
owner = "swsnr";
repo = "turnon";
rev = "v${version}";
hash = "sha256-727v1jQBBueLHvk0DphMHnrgJe46gap3hp0ygUYezJ0=";
};
cargoHash = "sha256-mywGCIjsoShRPRNMkTmVh7597QdvBSIsI/HucYv3CzY=";
nativeBuildInputs = [
cairo
pango
pkg-config
blueprint-compiler
wrapGAppsHook4
];
buildInputs = [
libadwaita
];
strictDeps = true;
preBuild = ''
blueprint-compiler format resources/**/*.blp
'';
meta = {
description = "Turn on devices in your local network";
homepage = "https://github.com/swsnr/turnon";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ mksafavi ];
mainProgram = "turnon";
platforms = lib.platforms.linux;
};
}