From 0c8d09f2746cb8d4b5f6ce2a2f15ad5927ecd29c Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Tue, 15 Oct 2024 16:07:22 -0300 Subject: [PATCH] audacity: remove `with lib` from meta and `rec` --- pkgs/by-name/au/audacity/package.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/au/audacity/package.nix b/pkgs/by-name/au/audacity/package.nix index 69570bfd7bf2..cbd16b123405 100644 --- a/pkgs/by-name/au/audacity/package.nix +++ b/pkgs/by-name/au/audacity/package.nix @@ -60,14 +60,14 @@ # TODO # 1. detach sbsms -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "audacity"; version = "3.6.4"; src = fetchFromGitHub { owner = "audacity"; repo = "audacity"; - rev = "Audacity-${version}"; + rev = "Audacity-${finalAttrs.version}"; hash = "sha256-72k79UFxhk8JUCnMzbU9lZ0Ua3Ui41EkhPGSnGkf9mE="; }; @@ -201,12 +201,12 @@ stdenv.mkDerivation rec { makeWrapper $out/Applications/Audacity.app/Contents/MacOS/Audacity $out/bin/audacity ''; - meta = with lib; { + meta = { description = "Sound editor with graphical UI"; mainProgram = "audacity"; homepage = "https://www.audacityteam.org"; changelog = "https://github.com/audacity/audacity/releases"; - license = with licenses; [ + license = with lib.licenses; [ gpl2Plus # Must be GPL3 when building with "technologies that require it, # such as the VST3 audio plugin interface". @@ -215,10 +215,10 @@ stdenv.mkDerivation rec { # Documentation. cc-by-30 ]; - maintainers = with maintainers; [ + maintainers = with lib.maintainers; [ veprbl wegank ]; - platforms = platforms.unix; + platforms = lib.platforms.unix; }; -} +})