mpvScripts.inhibit-gnome: Add updateScript

This commit is contained in:
nicoo 2023-12-09 19:43:05 +00:00
parent 4c968b4204
commit b0a5637c9e

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, dbus, mpv-unwrapped }:
{ lib, stdenv, fetchFromGitHub, gitUpdater, pkg-config, dbus, mpv-unwrapped }:
stdenv.mkDerivation rec {
pname = "mpv-inhibit-gnome";
@ -10,6 +10,9 @@ stdenv.mkDerivation rec {
rev = "v${version}";
hash = "sha256-LSGg5gAQE2JpepBqhz6D6d3NlqYaU4bjvYf1F+oLphQ=";
};
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};
nativeBuildInputs = [ pkg-config ];