From 33139a9c81a1a89f3aa2ca6591f8b7083de3abd9 Mon Sep 17 00:00:00 2001 From: mksafavi Date: Mon, 21 Oct 2024 20:15:42 +0330 Subject: [PATCH] turnon: init at 1.6.1 --- pkgs/by-name/tu/turnon/package.nix | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/tu/turnon/package.nix diff --git a/pkgs/by-name/tu/turnon/package.nix b/pkgs/by-name/tu/turnon/package.nix new file mode 100644 index 000000000000..72fcf0936ecb --- /dev/null +++ b/pkgs/by-name/tu/turnon/package.nix @@ -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; + }; +}