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

@@ -1,7 +1,7 @@
{
stdenv,
lib,
src,
srcOverride ? null,
version ? "stable202511",
python3,
git,
@@ -10,6 +10,7 @@
let
pythonEnv = python3.withPackages (ps: [ ps.tkinter ]);
pname = "edk2-basetools";
src = srcOverride;
in
stdenv.mkDerivation rec {
inherit src pname version;

View File

@@ -33,7 +33,7 @@ let
baseTools = pkgs.${namespace}.edk2-basetools.override {
version = "stable202511";
src = edk2Src;
srcOverride = edk2Src;
};
armTrustedFirmware = pkgs.${namespace}.arm-trusted-firmware.override { inherit MODEL; };

View File

@@ -16,7 +16,7 @@ buildHomeAssistantComponent rec {
hash = "sha256-3SnYjjQU2qRBcKs40bCpN75Ad3HqMcn/hRj1faSSeHw=";
};
buildInputs = with python3Packages; [
nativeBuildInputs = with python3Packages; [
dacite
];

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";