diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-12-24 02:07:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-24 02:07:14 +0100 |
commit | 4c536e0b695c2ef5a8b5ab0581481abd296df3d2 (patch) | |
tree | b41d791a563d61a5c1f0f4db503cf2493060dcdd /pkgs/applications/video | |
parent | 9572cd9622120f794e1d979e4cd4de96c7494927 (diff) | |
parent | 13c9d909c7d64fddbf49f37f88e162998a1f4eff (diff) |
Merge pull request #203838 from Myaats/mpv_inhibit_gnome
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/inhibit-gnome.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/inhibit-gnome.nix b/pkgs/applications/video/mpv/scripts/inhibit-gnome.nix new file mode 100644 index 0000000000000..2955dfb7c0c87 --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/inhibit-gnome.nix @@ -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 ]; + }; +} |