depot/third_party/nixpkgs/pkgs/applications/video/mpv/scripts/inhibit-gnome.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

31 lines
840 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, dbus, mpv-unwrapped }:
stdenv.mkDerivation rec {
pname = "mpv-inhibit-gnome";
version = "0.1.3";
src = fetchFromGitHub {
owner = "Guldoman";
repo = "mpv_inhibit_gnome";
rev = "v${version}";
hash = "sha256-LSGg5gAQE2JpepBqhz6D6d3NlqYaU4bjvYf1F+oLphQ=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus mpv-unwrapped ];
passthru.scriptName = "mpv_inhibit_gnome.so";
installPhase = ''
install -D ./lib/mpv_inhibit_gnome.so $out/share/mpv/scripts/mpv_inhibit_gnome.so
'';
meta = with lib; {
description = "This mpv plugin prevents screen blanking in GNOME";
homepage = "https://github.com/Guldoman/mpv_inhibit_gnome";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ myaats ];
};
}