Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
libwnck,
|
|
gtk3,
|
|
libnotify,
|
|
wrapGAppsHook3,
|
|
gobject-introspection,
|
|
replaceVars,
|
|
}:
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "xborders";
|
|
version = "3.4"; # in version.txt
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deter0";
|
|
repo = "xborder";
|
|
rev = "e74ae532b9555c59d195537934fa355b3fea73c5";
|
|
hash = "sha256-UKsseNkXest6npPqJKvKL0iBWeK+S7zynrDlyXIOmF4=";
|
|
};
|
|
|
|
buildInputs = [
|
|
libwnck
|
|
gtk3
|
|
libnotify
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook3
|
|
gobject-introspection
|
|
];
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
dependencies = with python3Packages; [
|
|
pycairo
|
|
requests
|
|
pygobject3
|
|
];
|
|
|
|
postPatch =
|
|
let
|
|
setup = replaceVars ./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";
|
|
};
|
|
}
|