nixpkgs/pkgs/tools/X11/xborders/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

58 lines
1.1 KiB
Nix

{ lib
, python3Packages
, fetchFromGitHub
, libwnck
, gtk3
, libnotify
, wrapGAppsHook3
, gobject-introspection
, substituteAll
}:
python3Packages.buildPythonPackage rec {
pname = "xborders";
version = "3.4"; # in version.txt
src = fetchFromGitHub {
owner = "deter0";
repo = "xborder";
rev = "e74ae532b9555c59d195537934fa355b3fea73c5";
hash = "sha256-UKsseNkXest6npPqJKvKL0iBWeK+S7zynrDlyXIOmF4=";
};
buildInputs = [
libwnck
gtk3
libnotify
];
nativeBuildInputs = [
wrapGAppsHook3
gobject-introspection
];
propagatedBuildInputs = with python3Packages; [
pycairo
requests
pygobject3
];
postPatch = let
setup = substituteAll {
src = ./setup.py;
desc = meta.description; # "description" is reserved
inherit pname version;
};
in ''
ln -s ${setup} setup.py
'';
meta = with lib; {
description = "Active window border replacement for window managers";
homepage = "https://github.com/deter0/xborder";
license = licenses.unlicense;
maintainers = with maintainers; [ elnudev ];
platforms = platforms.linux;
mainProgram = "xborders";
};
}