mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib, python3, fetchFromGitHub, gtk3, gobject-introspection, gtk-layer-shell, wrapGAppsHook3 }:
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "discover-overlay";
|
|
version = "0.7.8";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trigg";
|
|
repo = "Discover";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-0b0uZDa9Q3pQ6X65C+E31dMpdTPt4vvHDEqFEtRoedg=";
|
|
};
|
|
|
|
buildInputs = [ gtk3 gtk-layer-shell ];
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" "--set DISPLAY ':0.0'" ];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pulsectl-asyncio
|
|
pycairo
|
|
pygobject3
|
|
websocket-client
|
|
pyxdg
|
|
requests
|
|
pillow
|
|
setuptools
|
|
xlib
|
|
];
|
|
postPatch = ''
|
|
substituteInPlace discover_overlay/image_getter.py \
|
|
--replace-fail /usr $out
|
|
'';
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Yet another discord overlay for linux";
|
|
homepage = "https://github.com/trigg/Discover";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ dragonginger ];
|
|
mainProgram = "discover-overlay";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|