xborders: add requested changes

inky
Elnu 2 years ago
parent fb7dd4a4ee
commit 467792271e

@ -3,18 +3,34 @@
with pkgs; callPackage python3Packages.buildPythonPackage rec { with pkgs; callPackage python3Packages.buildPythonPackage rec {
pname = "xborders"; pname = "xborders";
version = "3.4"; # in version.txt version = "3.4"; # in version.txt
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "deter0"; owner = "deter0";
repo = "xborder"; repo = "xborder";
rev = "d840ed649e92b7ad399cdb1a30aeca7d09f2c08f"; rev = "d840ed649e92b7ad399cdb1a30aeca7d09f2c08f";
sha256 = "sha256-Q2WWXekUL/OOr/OBqJOZbAHaWURbP+coBVp206uPSNY="; sha256 = "sha256-Q2WWXekUL/OOr/OBqJOZbAHaWURbP+coBVp206uPSNY=";
}; };
buildInputs = [ libwnck gtk3 libnotify ];
nativeBuildInputs = [ wrapGAppsHook gobject-introspection ]; buildInputs = [
propagatedBuildInputs = with python3Packages; [ pycairo requests pygobject3 ]; libwnck
gtk3
libnotify
];
nativeBuildInputs = [
wrapGAppsHook
gobject-introspection
];
propagatedBuildInputs = with python3Packages; [
pycairo
requests
pygobject3
];
preBuild = '' preBuild = ''
sed '52,58!d' ${pname} sed '52,58!d' xborders
sed -i '51 a\ return ${version}' ${pname} sed -i '51 a\ return ${version}' xborders
cat >setup.py <<'EOF' cat >setup.py <<'EOF'
from setuptools import setup from setuptools import setup
setup( setup(
@ -24,11 +40,12 @@ with pkgs; callPackage python3Packages.buildPythonPackage rec {
description='${meta.description}', description='${meta.description}',
install_requires=['pycairo', 'requests', 'PyGObject'], install_requires=['pycairo', 'requests', 'PyGObject'],
scripts=[ scripts=[
'${pname}', 'xborders',
], ],
) )
EOF EOF
''; '';
meta = with lib; { meta = with lib; {
description = "Active window border replacement for window managers."; description = "Active window border replacement for window managers.";
homepage = "https://github.com/deter0/xborder"; homepage = "https://github.com/deter0/xborder";

Loading…
Cancel
Save