mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, libwnck
|
|
, gtk3
|
|
, libnotify
|
|
, wrapGAppsHook3
|
|
, 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 = [
|
|
wrapGAppsHook3
|
|
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;
|
|
mainProgram = "xborders";
|
|
};
|
|
}
|