tangara-companion: init at 0.4.3 (#365308)

authored by Arne Keller and committed by GitHub 28615f46 d426d417

+79
+79
pkgs/by-name/ta/tangara-companion/package.nix
···
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + 6 + copyDesktopItems, 7 + makeDesktopItem, 8 + 9 + gdk-pixbuf, 10 + glib, 11 + graphene, 12 + gtk4, 13 + libadwaita, 14 + pango, 15 + pkg-config, 16 + udev, 17 + }: 18 + 19 + rustPlatform.buildRustPackage rec { 20 + pname = "tangara-companion"; 21 + version = "0.4.3"; 22 + 23 + src = fetchFromGitHub { 24 + owner = "haileys"; 25 + repo = pname; 26 + tag = "v${version}"; 27 + hash = "sha256-pTE+xlXWIOOt1oiKosnbXTCLYoAqP3CfXA283a//Ds0="; 28 + }; 29 + 30 + useFetchCargoVendor = true; 31 + 32 + cargoHash = "sha256-C7Q3Oo/aBBH6pW1zSFQ2nD07+wu8uXfRSwNif2pVlW0="; 33 + 34 + nativeBuildInputs = [ 35 + copyDesktopItems 36 + glib 37 + pkg-config 38 + ]; 39 + 40 + buildInputs = [ 41 + gdk-pixbuf 42 + glib 43 + graphene 44 + gtk4 45 + libadwaita 46 + pango 47 + udev 48 + ]; 49 + 50 + desktopItems = [ 51 + (makeDesktopItem { 52 + name = pname; 53 + desktopName = "Tangara Companion"; 54 + comment = meta.description; 55 + type = "Application"; 56 + exec = meta.mainProgram; 57 + terminal = false; 58 + categories = [ 59 + "Utility" 60 + "GTK" 61 + ]; 62 + icon = "tangara-companion"; 63 + startupNotify = true; 64 + }) 65 + ]; 66 + 67 + postInstall = '' 68 + install -Dm644 $src/data/assets/icon.svg $out/share/icons/hicolor/scalable/apps/tangara-companion.svg 69 + ''; 70 + 71 + meta = { 72 + description = "Companion app for Cool Tech Zone Tangara"; 73 + mainProgram = "tangara-companion"; 74 + homepage = "https://github.com/haileys/tangara-companion"; 75 + license = lib.licenses.gpl3Plus; 76 + maintainers = with lib.maintainers; [ benpye ]; 77 + platforms = lib.platforms.linux; 78 + }; 79 + }