sysvol: add an update script
This commit is contained in:
parent
514fbca3f1
commit
c4c5a640ce
|
@ -4,6 +4,7 @@
|
||||||
, gtkmm4
|
, gtkmm4
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, pulseaudio
|
, pulseaudio
|
||||||
|
, nix-update-script
|
||||||
, wrapGAppsHook4
|
, wrapGAppsHook4
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
@ -11,7 +12,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
version = "0-unstable-2024-04-11";
|
version = "0-unstable-2024-04-11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "AmirDahan";
|
owner = "System64fumo";
|
||||||
repo = "sysvol";
|
repo = "sysvol";
|
||||||
rev = "a26809de285ee194436bc55ef701476765c5b15e";
|
rev = "a26809de285ee194436bc55ef701476765c5b15e";
|
||||||
hash = "sha256-WiFm5SRQV2up9EBCR9oF0p9F+DQHDQZhxsaUuvpbMw8=";
|
hash = "sha256-WiFm5SRQV2up9EBCR9oF0p9F+DQHDQZhxsaUuvpbMw8=";
|
||||||
|
@ -41,9 +42,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
install -m755 sysvol $out/bin/sysvol
|
install -m755 sysvol $out/bin/sysvol
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script {
|
||||||
|
extraArgs = [ "--version" "branch" ];
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A basic GTK4 volume indicator";
|
description = "A basic GTK4 volume indicator";
|
||||||
inherit (finalAttrs.src.meta) homepage;
|
homepage = "https://github.com/System64fumo/sysvol";
|
||||||
mainProgram = "sysvol";
|
mainProgram = "sysvol";
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
maintainers = with lib.maintainers; [ colinsane ];
|
maintainers = with lib.maintainers; [ colinsane ];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user