summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-10-08 21:46:08 -0500
committerTim Keller <tjkeller.xyz>2024-10-08 21:46:08 -0500
commitf292df04229818894c184fef008419225a8720e8 (patch)
treeb2210d2c57a3af00c9b078f9e0f7b7e15495e9ad /modules
parent2b00c3b81aa13bfbf156e2d54f9888283dde11f3 (diff)
downloadnixos-f292df04229818894c184fef008419225a8720e8.tar.xz
nixos-f292df04229818894c184fef008419225a8720e8.zip
add custom derivation for pavolctld and install it in software.nix
Diffstat (limited to 'modules')
-rw-r--r--modules/root/resources/derivations/pavolctld/default.nix30
-rw-r--r--modules/root/software.nix1
2 files changed, 31 insertions, 0 deletions
diff --git a/modules/root/resources/derivations/pavolctld/default.nix b/modules/root/resources/derivations/pavolctld/default.nix
new file mode 100644
index 0000000..9f6471d
--- /dev/null
+++ b/modules/root/resources/derivations/pavolctld/default.nix
@@ -0,0 +1,30 @@
+{ pkgs ? import <nixpkgs> {} }:
+
+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 ];
+ };
+}
diff --git a/modules/root/software.nix b/modules/root/software.nix
index f52f25c..52ecb50 100644
--- a/modules/root/software.nix
+++ b/modules/root/software.nix
@@ -18,6 +18,7 @@
config = {
environment.systemPackages = with pkgs; pkgs.lib.optionals config.software.desktop.enable [
# Desktop
+ (callPackage ./resources/derivations/pavolctld { })
alacritty
arandr
dmenu