dotfiles/hm/desktop/frobar/default.nix

40 lines
976 B
Nix

{
# nixpkgs ? builtins.getFlake "github:GeoffreyFrogeye/nixpkgs/zelbar",
nixpkgs ? /nix/store/8g86qw3c2fr56bhhvqznrlic4jig9hb3-source,
pkgs ? import nixpkgs {
config = { };
overlays = [ ];
},
...
}:
# Tried using pyproject.nix but mpd2 dependency wouldn't resolve,
# is called pyton-mpd2 on PyPi but mpd2 in nixpkgs.
pkgs.python3Packages.buildPythonApplication rec {
pname = "frobar";
version = "3.0";
propagatedBuildInputs = with pkgs.python3Packages; [
i3ipc
psutil
pulsectl-asyncio
pygobject3
rich
];
# TODO Might just be buildInputs, maybe without the need for prefix?
nativeBuildInputs = with pkgs; [
wirelesstools
playerctl
zelbar
];
makeWrapperArgs = [
"--prefix PATH : ${pkgs.lib.makeBinPath nativeBuildInputs}"
"--prefix GI_TYPELIB_PATH : ${GI_TYPELIB_PATH}"
];
GI_TYPELIB_PATH = pkgs.lib.makeSearchPath "lib/girepository-1.0" [
pkgs.glib.out
pkgs.playerctl
];
src = ./.;
}