Skip to content

Commit

Permalink
discover-overlay: init at 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonginger10 committed Apr 12, 2024
1 parent 5e37f12 commit 680b954
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions pkgs/by-name/di/discover-overlay/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{ lib, python3, fetchFromGitHub, gtk3, gobject-introspection, gtk-layer-shell, wrapGAppsHook }:
python3.pkgs.buildPythonApplication rec {
pname = "discover-overlay";
version = "0.7.0";
pyproject = true;

src = fetchFromGitHub {
owner = "trigg";
repo = "Discover";
rev = "refs/tags/v${version}";
hash = "sha256-//QW6N87Uhm2aH0RSuykHG3+EfzYSHOcSNLSn1y0rFw=";
};

buildInputs = [
gtk3
gtk-layer-shell
];

nativeBuildInputs = with python3.pkgs; [
gobject-introspection
wrapGAppsHook
];

dontWrapGApps = true;

makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" "--set DISPLAY ':0.0'" ];

propagatedBuildInputs = with python3.pkgs; [
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";
};
}

0 comments on commit 680b954

Please sign in to comment.