nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 63 lines 1.2 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 libwnck, 6 gtk3, 7 libnotify, 8 wrapGAppsHook3, 9 gobject-introspection, 10 replaceVars, 11}: 12 13python3Packages.buildPythonPackage rec { 14 pname = "xborders"; 15 version = "3.4"; # in version.txt 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "deter0"; 20 repo = "xborder"; 21 rev = "e74ae532b9555c59d195537934fa355b3fea73c5"; 22 hash = "sha256-UKsseNkXest6npPqJKvKL0iBWeK+S7zynrDlyXIOmF4="; 23 }; 24 25 buildInputs = [ 26 libwnck 27 gtk3 28 libnotify 29 ]; 30 31 nativeBuildInputs = [ 32 wrapGAppsHook3 33 gobject-introspection 34 ]; 35 36 build-system = with python3Packages; [ setuptools ]; 37 38 dependencies = with python3Packages; [ 39 pycairo 40 requests 41 pygobject3 42 ]; 43 44 postPatch = 45 let 46 setup = replaceVars ./setup.py { 47 desc = meta.description; # "description" is reserved 48 inherit pname version; 49 }; 50 in 51 '' 52 ln -s ${setup} setup.py 53 ''; 54 55 meta = with lib; { 56 description = "Active window border replacement for window managers"; 57 homepage = "https://github.com/deter0/xborder"; 58 license = licenses.unlicense; 59 maintainers = with maintainers; [ elnudev ]; 60 platforms = platforms.linux; 61 mainProgram = "xborders"; 62 }; 63}