nix-config/pkgs/ewwbar/default.nix
2025-01-15 12:53:53 +01:00

69 lines
1.2 KiB
Nix

{ lib
, rustPlatform
, fetchzip
, pkg-config
, makeWrapper
, libxkbcommon
, eww
, bash
, gawk
, bluez
, coreutils
, inotify-tools
, playerctl
, networkmanager
, wireplumber
, pulseaudio
}:
rustPlatform.buildRustPackage rec {
pname = "ewwbar";
version = "v0.1.1";
src = fetchzip {
url = "https://git.huwe.mooo.com/willifan/desktop-utils/archive/${version}.tar.gz";
sha256 = "sha256-HbNbGEfkohFGmy22RGslrwR2REFbhbRL+I656V9e/7Q=";
};
cargoHash = "sha256-89Vljhbv2yLJtnr/6GLAuXkhVovJn1Iy+8jNgdPCCu8=";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
libxkbcommon
];
postInstall = ''
mkdir -p $out/bin
cp -r $src/eww $out/bin/eww
'';
postFixup = ''
wrapProgram $out/bin/ewwbar \
--set PATH ${lib.makeBinPath [
eww
bash
gawk
bluez
coreutils
inotify-tools
playerctl
networkmanager
wireplumber
pulseaudio
]}
'';
meta = with lib; {
description = "utils for my desktop";
homepage = " git.huwe.mooo.com/willifan/desktop-utils";
license = licenses.gpl3;
platforms = platforms.unix;
mainProgram = "ewwbar";
};
}