Merge pull request #203838 from Myaats/mpv_inhibit_gnome
This commit is contained in:
commit
4c536e0b69
31
pkgs/applications/video/mpv/scripts/inhibit-gnome.nix
Normal file
31
pkgs/applications/video/mpv/scripts/inhibit-gnome.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -30860,6 +30860,7 @@ with pkgs;
|
||||
mpvScripts = recurseIntoAttrs {
|
||||
autoload = callPackage ../applications/video/mpv/scripts/autoload.nix {};
|
||||
convert = callPackage ../applications/video/mpv/scripts/convert.nix {};
|
||||
inhibit-gnome = callPackage ../applications/video/mpv/scripts/inhibit-gnome.nix {};
|
||||
mpris = callPackage ../applications/video/mpv/scripts/mpris.nix {};
|
||||
mpv-playlistmanager = callPackage ../applications/video/mpv/scripts/mpv-playlistmanager.nix {};
|
||||
mpvacious = callPackage ../applications/video/mpv/scripts/mpvacious.nix {};
|
||||
|
Loading…
Reference in New Issue
Block a user