2024-06-17 20:36:50 +02:00
|
|
|
{ pkgs ? import <nixpkgs> { config = { }; overlays = [ ]; }, ... }:
|
2024-06-18 04:09:59 +02:00
|
|
|
let
|
|
|
|
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
|
2023-11-19 20:51:05 +01:00
|
|
|
# Tried using pyproject.nix but mpd2 dependency wouldn't resolve,
|
2024-06-18 04:09:59 +02:00
|
|
|
# is called pyton-mpd2 on PyPi but mpd2 in nixpkgs.
|
2024-06-17 20:36:50 +02:00
|
|
|
pkgs.python3Packages.buildPythonApplication {
|
|
|
|
pname = "frobar";
|
|
|
|
version = "2.0";
|
2023-11-19 20:51:05 +01:00
|
|
|
|
2024-06-17 20:36:50 +02:00
|
|
|
propagatedBuildInputs = with pkgs.python3Packages; [
|
|
|
|
coloredlogs
|
|
|
|
notmuch
|
|
|
|
i3ipc
|
|
|
|
mpd2
|
|
|
|
psutil
|
|
|
|
pulsectl
|
|
|
|
pyinotify
|
|
|
|
];
|
2024-08-11 14:54:51 +02:00
|
|
|
makeWrapperArgs = [ "--prefix PATH : ${pkgs.lib.makeBinPath ([ lemonbar ] ++ (with pkgs; [ wirelesstools playerctl ]))}" ];
|
2023-11-19 20:51:05 +01:00
|
|
|
|
2024-06-17 20:36:50 +02:00
|
|
|
src = ./.;
|
2023-12-08 22:44:21 +01:00
|
|
|
}
|