Skip to content

Commit

Permalink
tangara-companion: init at 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
benpye committed Dec 16, 2024
1 parent 67f5b45 commit 4bda7a6
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions pkgs/by-name/ta/tangara-companion/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
lib,
rustPlatform,
fetchFromGitHub,

copyDesktopItems,
makeDesktopItem,

gdk-pixbuf,
glib,
graphene,
gtk4,
libadwaita,
pango,
pkg-config,
udev,
}:

rustPlatform.buildRustPackage rec {
pname = "tangara-companion";
version = "0.4.3";

src = fetchFromGitHub {
owner = "haileys";
repo = pname;
tag = "v${version}";
hash = "sha256-pTE+xlXWIOOt1oiKosnbXTCLYoAqP3CfXA283a//Ds0=";
};

useFetchCargoVendor = true;

cargoHash = "sha256-C7Q3Oo/aBBH6pW1zSFQ2nD07+wu8uXfRSwNif2pVlW0=";

nativeBuildInputs = [
copyDesktopItems
glib
pkg-config
];

buildInputs = [
gdk-pixbuf
glib
graphene
gtk4
libadwaita
pango
udev
];

desktopItems = [
(makeDesktopItem {
name = pname;
desktopName = "Tangara Companion";
comment = meta.description;
type = "Application";
exec = meta.mainProgram;
terminal = false;
categories = [
"Utility"
"GTK"
];
icon = "tangara-companion";
startupNotify = true;
})
];

postInstall = ''
install -Dm644 $src/data/assets/icon.svg $out/share/icons/hicolor/scalable/apps/tangara-companion.svg
'';

meta = {
description = "Companion app for Cool Tech Zone Tangara";
mainProgram = "tangara-companion";
homepage = "https://github.com/haileys/tangara-companion";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ benpye ];
platforms = lib.platforms.linux;
};
}

0 comments on commit 4bda7a6

Please sign in to comment.