commit
003d985aad
3 changed files with 71 additions and 0 deletions
57
pkgs/tools/X11/xborders/default.nix
Normal file
57
pkgs/tools/X11/xborders/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, python3Packages
|
||||
, fetchFromGitHub
|
||||
, libwnck
|
||||
, gtk3
|
||||
, libnotify
|
||||
, wrapGAppsHook
|
||||
, 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 = [
|
||||
wrapGAppsHook
|
||||
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;
|
||||
};
|
||||
}
|
12
pkgs/tools/X11/xborders/setup.py
Normal file
12
pkgs/tools/X11/xborders/setup.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='@pname@',
|
||||
version='@version@',
|
||||
author='deter0',
|
||||
description='@desc@',
|
||||
install_requires=['pycairo', 'requests', 'PyGObject'],
|
||||
scripts=[
|
||||
'xborders',
|
||||
],
|
||||
)
|
|
@ -34353,6 +34353,8 @@ with pkgs;
|
|||
gtk = gtk2;
|
||||
};
|
||||
|
||||
xborders = callPackage ../tools/X11/xborders { };
|
||||
|
||||
xxh = callPackage ../tools/networking/xxh { };
|
||||
|
||||
kodiPackages = recurseIntoAttrs (kodi.packages);
|
||||
|
|
Loading…
Reference in a new issue