apulse: modernize, move to finalAttrs

This commit is contained in:
kashw2
2025-11-08 12:11:24 +10:00
parent aa7ca28926
commit ee1039297a

View File

@@ -14,15 +14,15 @@ let
oz = x: if x then "1" else "0"; oz = x: if x then "1" else "0";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "apulse"; pname = "apulse";
version = "0.1.14"; version = "0.1.14";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "i-rinat"; owner = "i-rinat";
repo = pname; repo = "apulse";
rev = "v${version}"; tag = "v${finalAttrs.version}";
sha256 = "sha256-SWvQvS9QBOevOSRpjY3XpyhzWoHAkXzkk8Mh4ovltNI="; hash = "sha256-SWvQvS9QBOevOSRpjY3XpyhzWoHAkXzkk8Mh4ovltNI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@@ -40,12 +40,13 @@ stdenv.mkDerivation rec {
"-DLOG_TO_STDERR=${oz logToStderr}" "-DLOG_TO_STDERR=${oz logToStderr}"
]; ];
meta = with lib; { meta = {
description = "PulseAudio emulation for ALSA"; description = "PulseAudio emulation for ALSA";
homepage = "https://github.com/i-rinat/apulse"; homepage = "https://github.com/i-rinat/apulse";
license = licenses.mit; changelog = "https://github.com/i-rinat/apulse/releases/tag/v${finalAttrs.version}";
platforms = platforms.linux; license = lib.licenses.mit;
maintainers = [ maintainers.jagajaga ]; platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.jagajaga ];
mainProgram = "apulse"; mainProgram = "apulse";
}; };
} })