nixpkgs/pkgs/by-name/di/discover-overlay/package.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, python3, fetchFromGitHub, gtk3, gobject-introspection, gtk-layer-shell, wrapGAppsHook3 }:
2024-03-14 18:03:54 +01:00
python3.pkgs.buildPythonApplication rec {
pname = "discover-overlay";
2024-08-29 21:05:14 +02:00
version = "0.7.8";
2024-03-14 18:03:54 +01:00
pyproject = true;
src = fetchFromGitHub {
owner = "trigg";
repo = "Discover";
rev = "refs/tags/v${version}";
2024-08-29 21:05:14 +02:00
hash = "sha256-0b0uZDa9Q3pQ6X65C+E31dMpdTPt4vvHDEqFEtRoedg=";
2024-03-14 18:03:54 +01:00
};
2024-04-24 02:56:41 +02:00
buildInputs = [ gtk3 gtk-layer-shell ];
2024-03-14 18:03:54 +01:00
2024-04-24 02:56:41 +02:00
nativeBuildInputs = [
2024-03-14 18:03:54 +01:00
gobject-introspection
wrapGAppsHook3
2024-03-14 18:03:54 +01:00
];
dontWrapGApps = true;
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" "--set DISPLAY ':0.0'" ];
propagatedBuildInputs = with python3.pkgs; [
2024-04-24 02:56:41 +02:00
pulsectl-asyncio
2024-03-14 18:03:54 +01:00
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;
};
}