dotfiles/hm/desktop/frobar/default.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2024-12-15 00:29:51 +01:00
{
pkgs ? import <nixpkgs> {
config = { };
overlays = [ ];
},
...
}:
let
2024-12-15 00:29:51 +01:00
lemonbar = (
pkgs.lemonbar-xft.overrideAttrs (old: {
src = pkgs.fetchFromGitHub {
owner = "drscream";
repo = "lemonbar-xft";
rev = "a64a2a6a6d643f4d92f9d7600722710eebce7bdb";
sha256 = "sha256-T5FhEPIiDt/9paJwL9Sj84CBtA0YFi1hZz0+87Hd6jU=";
# https://github.com/drscream/lemonbar-xft/pull/2
};
})
);
in
# Tried using pyproject.nix but mpd2 dependency wouldn't resolve,
2024-12-15 00:29:51 +01:00
# is called pyton-mpd2 on PyPi but mpd2 in nixpkgs.
2024-08-13 01:58:51 +02:00
pkgs.python3Packages.buildPythonApplication rec {
2024-06-17 20:36:50 +02:00
pname = "frobar";
version = "2.0";
2024-06-17 20:36:50 +02:00
propagatedBuildInputs = with pkgs.python3Packages; [
2025-01-03 18:56:20 +01:00
coloredlogs # old only
2024-06-17 20:36:50 +02:00
i3ipc
mpd2
2025-01-03 18:56:20 +01:00
notmuch
2024-06-17 20:36:50 +02:00
psutil
2025-01-03 20:18:31 +01:00
pulsectl-asyncio
2025-01-10 00:16:48 +01:00
pulsectl # old only
pygobject3
2024-06-17 20:36:50 +02:00
pyinotify
2025-01-03 18:56:20 +01:00
rich
2024-06-17 20:36:50 +02:00
];
2024-12-15 00:29:51 +01:00
nativeBuildInputs =
[ lemonbar ]
++ (with pkgs; [
wirelesstools
playerctl
]);
2024-08-13 01:58:51 +02:00
makeWrapperArgs = [ "--prefix PATH : ${pkgs.lib.makeBinPath nativeBuildInputs}" ];
2025-01-10 00:16:48 +01:00
GI_TYPELIB_PATH = pkgs.lib.makeSearchPath "lib/girepository-1.0" [ pkgs.glib.out pkgs.playerctl ];
2024-06-17 20:36:50 +02:00
src = ./.;
2023-12-08 22:44:21 +01:00
}