This commit is contained in:
2026-03-25 16:02:04 -05:00
parent 18e781d388
commit 981b03b955
7 changed files with 119 additions and 251 deletions

View File

@@ -12,6 +12,8 @@
expat,
fontconfig,
freetype,
makeDesktopItem,
copyDesktopItems,
namespace,
system,
pkgs,
@@ -41,6 +43,7 @@ rustPlatform.buildRustPackage rec {
libpulseaudio
autoPatchelfHook
makeWrapper
copyDesktopItems
];
buildInputs = [
@@ -61,10 +64,25 @@ rustPlatform.buildRustPackage rec {
libxkbcommon
];
desktopItem = makeDesktopItem {
name = "librepods";
desktopName = "LibrePODS";
comment = "Open source alternative for AirPods";
exec = "librepods";
icon = "librepods";
terminal = false;
categories = [
"Audio"
"Utility"
];
};
postFixup = ''
wrapProgram $out/bin/librepods --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs}
'';
passthru.imaging = desktopItem;
meta = with lib; {
description = "Open source alternative for AirPods";
homepage = "https://github.com/kavishdevar/librepods";