diff --git a/pkgs/additional/sysvol/default.nix b/pkgs/additional/sysvol/default.nix new file mode 100644 index 000000000..e4af57200 --- /dev/null +++ b/pkgs/additional/sysvol/default.nix @@ -0,0 +1,40 @@ +{ lib, stdenv +, fetchFromGitHub +, gtk4-layer-shell +, gtkmm4 +, pkg-config +, pulseaudio +}: +stdenv.mkDerivation (finalAttrs: { + pname = "sysvol"; + version = "0-unstable-2024-02-08"; + + src = fetchFromGitHub { + owner = "AmirDahan"; + repo = "sysvol"; + rev = "b8a15ca2e52922bceab3f48c5630149674da57e9"; + hash = "sha256-BaefSRnn6ww3Ut+3ouXKoI/8/vmcPh/QV6dEETr3tog="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + buildInputs = [ + gtk4-layer-shell + gtkmm4 + pulseaudio + ]; + + installPhase = '' + mkdir -p $out/bin + install -m755 sysvol $out/bin/sysvol + ''; + + meta = { + description = "A basic GTK4 volume indicator"; + inherit (finalAttrs.src.meta) homepage; + mainProgram = "sysvol"; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ colinsane ]; + }; +}) diff --git a/pkgs/default.nix b/pkgs/default.nix index 3c5629a74..6fcdf7188 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -67,6 +67,7 @@ let swaylock-plugin = callPackage ./additional/swaylock-plugin { }; sxmo_swaylock = callPackage ./additional/sxmo_swaylock { }; sxmo-utils = callPackage ./additional/sxmo-utils { }; + sysvol = callPackage ./additional/sysvol { }; tow-boot-pinephone = callPackage ./additional/tow-boot-pinephone { }; tree-sitter-nix-shell = callPackage ./additional/tree-sitter-nix-shell { }; trivial-builders = lib.recurseIntoAttrs (callPackage ./additional/trivial-builders { });