xborders: use nixpkgs

inky
Elnu 1 year ago
parent 0f1099f5f3
commit ef4717e6cd

@ -19,7 +19,6 @@ in
../modules/startpage
../modules/terminal
../modules/todo-txt
../modules/xborders
];
home.file."./.background-image".source = theme.wallpaper;

@ -8,6 +8,7 @@ in with theme.colors; {
home.packages = with pkgs; [
playerctl # pactl comes with PulseAudio
wmctrl # For rofi power menu
xborders # Active window borders
];
# Screenshots

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
(pkgs.callPackage ./xborders.nix {})
];
}

@ -1,12 +0,0 @@
from setuptools import setup
setup(
name='@pname@',
version='@version@',
author='deter0',
description='@desc@',
install_requires=['pycairo', 'requests', 'PyGObject'],
scripts=[
'xborders',
],
)

@ -1,48 +0,0 @@
{ lib, pkgs, ... }:
with pkgs; callPackage 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 = pkgs.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;
};
}
Loading…
Cancel
Save