27 lines
677 B
Nix
27 lines
677 B
Nix
|
{ pkgs }:
|
||
|
pkgs.stdenv.mkDerivation rec {
|
||
|
pname = "polybar-scripts";
|
||
|
version = "8a6a2c7fc6beb281515f81ccf5b9fafc830a3230";
|
||
|
|
||
|
src = pkgs.fetchFromGitHub {
|
||
|
owner = "polybar";
|
||
|
repo = pname;
|
||
|
rev = version;
|
||
|
sha256 = "sha256-4f12SSidJGElPbHs94WyoKj9kJH4dWsZSqMGOyzSJII=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = with pkgs; [ gobject-introspection wrapGAppsHook3 ];
|
||
|
|
||
|
propagatedBuildInputs = with pkgs; [
|
||
|
(python39.withPackages (pyPkgs: with pyPkgs; [ dbus-python pygobject3 ]))
|
||
|
glib
|
||
|
];
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
find . -type f ! -name "*.py" ! -name "*.sh" -exec rm {} \;
|
||
|
cp -r polybar-scripts/* $out/bin/
|
||
|
chmod -R +x $out/bin
|
||
|
'';
|
||
|
}
|