From 74528b8bf9c58d4ffefd92b00207a92b22d6510e Mon Sep 17 00:00:00 2001 From: Michael Evans Date: Fri, 19 Jan 2024 00:13:13 +0200 Subject: [PATCH] telegraph: init at 0.1.8 --- pkgs/by-name/te/telegraph/package.nix | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/te/telegraph/package.nix diff --git a/pkgs/by-name/te/telegraph/package.nix b/pkgs/by-name/te/telegraph/package.nix new file mode 100644 index 000000000000..332c09884c65 --- /dev/null +++ b/pkgs/by-name/te/telegraph/package.nix @@ -0,0 +1,52 @@ +{ lib +, desktop-file-utils +, fetchFromGitHub +, gobject-introspection +, gtk4 +, libadwaita +, meson +, ninja +, pkg-config +, python3 +, stdenv +, wrapGAppsHook4 +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "telegraph"; + version = "0.1.8"; + + src = fetchFromGitHub { + owner = "fkinoshita"; + repo = "Telegraph"; + rev = "v${finalAttrs.version}"; + hash = "sha256-m36YHIo1PaDunnC12feSAbwwG1+E7s90fzOKskHtIag="; + }; + + nativeBuildInputs = [ + desktop-file-utils + gobject-introspection + meson + ninja + pkg-config + wrapGAppsHook4 + ]; + + buildInputs = [ + gtk4 + libadwaita + (python3.withPackages (ps: with ps; [ + pygobject3 + ])) + ]; + + meta = with lib; { + changelog = "https://github.com/fkinoshita/Telegraph/releases/v${finalAttrs.version}"; + description = "Write and decode Morse"; + homepage = "https://github.com/fkinoshita/Telegraph"; + license = licenses.gpl3Only; + mainProgram = "telegraph"; + maintainers = with maintainers; [ michaelgrahamevans ]; + platforms = platforms.linux; + }; +})