nixpkgs/pkgs/applications/audio/paprefs/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

54 lines
970 B
Nix

{ fetchurl
, lib
, stdenv
, meson
, ninja
, gettext
, pkg-config
, pulseaudioFull
, glibmm
, gtkmm3
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "paprefs";
version = "1.2";
src = fetchurl {
url = "https://freedesktop.org/software/pulseaudio/paprefs/paprefs-${version}.tar.xz";
sha256 = "sha256-s/IeQNw5NtFeP/yRD7DAfBS4jowodxW0VqlIwXY49jM=";
};
nativeBuildInputs = [
meson
ninja
gettext
pkg-config
wrapGAppsHook
];
buildInputs = [
pulseaudioFull
glibmm
gtkmm3
];
meta = with lib; {
description = "PulseAudio Preferences";
mainProgram = "paprefs";
longDescription = ''
PulseAudio Preferences (paprefs) is a simple GTK based configuration
dialog for the PulseAudio sound server.
'';
homepage = "http://freedesktop.org/software/pulseaudio/paprefs/";
license = licenses.gpl2Plus;
maintainers = [ maintainers.abbradar ];
platforms = platforms.linux;
};
}