From 7aa221e4dbb6a1cf1cc180a274fc279d95a6f47c Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 20 Oct 2024 11:24:03 -0500 Subject: add derivations for lowbat and pavolctld, install --- derivations/pavolctld/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 derivations/pavolctld/default.nix (limited to 'derivations/pavolctld') diff --git a/derivations/pavolctld/default.nix b/derivations/pavolctld/default.nix new file mode 100644 index 0000000..9f6471d --- /dev/null +++ b/derivations/pavolctld/default.nix @@ -0,0 +1,30 @@ +{ pkgs ? import {} }: + +pkgs.stdenv.mkDerivation { + pname = "pavolctld"; + version = "1.0"; + + src = pkgs.fetchgit { + url = "https://git.tjkeller.xyz/pavolctld"; + rev = "079cf8b96a629313ebf1f579601aadccd0e6c424"; + sha256 = "sha256-UIWh+Um/wdUKslyai5685wm6uMSl+zwwDsom6OL1CyU="; + }; + + buildInputs = [ pkgs.libpulseaudio ]; + + buildPhase = '' + make + ''; + + installPhase = '' + mkdir -p $out/bin $out/share/man/man1 + cp pavolctld $out/bin/ + cp pavolctld.1 $out/share/man/man1/ + ''; + + meta = with pkgs.lib; { + description = "A minimal PulseAudio volume control/monitoring daemon"; + license = licenses.mit; + maintainers = [ maintainers.tjkeller ]; + }; +} -- cgit v1.2.3