pianobooster: refactor meta section and switch to finalAttrs

+12 -12
+12 -12
pkgs/by-name/pi/pianobooster/package.nix
··· 4 4 fetchFromGitHub, 5 5 cmake, 6 6 pkg-config, 7 - qttools, 8 7 alsa-lib, 9 8 ftgl, 10 9 libGLU, 11 - qtbase, 12 10 rtmidi, 13 11 libjack2, 14 12 fluidsynth, 15 13 soundfont-fluid, 16 14 unzip, 17 - wrapQtAppsHook, 15 + libsForQt5, 18 16 }: 19 17 20 - stdenv.mkDerivation rec { 18 + stdenv.mkDerivation (finalAttrs: { 21 19 pname = "pianobooster"; 22 20 version = "1.0.0"; 23 21 24 22 src = fetchFromGitHub { 25 23 owner = "pianobooster"; 26 24 repo = "PianoBooster"; 27 - rev = "v${version}"; 25 + tag = "v${finalAttrs.version}"; 28 26 hash = "sha256-1WOlAm/HXSL6QK0Kd1mnFEZxxpMseTG+6WzgMNWt+RA="; 29 27 }; 30 28 ··· 37 35 nativeBuildInputs = [ 38 36 cmake 39 37 pkg-config 38 + ] 39 + ++ (with libsForQt5; [ 40 40 qttools 41 41 wrapQtAppsHook 42 - ]; 42 + ]); 43 43 44 44 buildInputs = [ 45 45 alsa-lib 46 46 ftgl 47 47 libGLU 48 - qtbase 48 + libsForQt5.qtbase 49 49 rtmidi 50 50 libjack2 51 51 fluidsynth ··· 62 62 ) 63 63 ''; 64 64 65 - meta = with lib; { 65 + meta = { 66 66 description = "MIDI file player that teaches you how to play the piano"; 67 67 mainProgram = "pianobooster"; 68 68 homepage = "https://github.com/pianobooster/PianoBooster"; 69 - license = licenses.gpl3Plus; 70 - platforms = platforms.linux; 71 - maintainers = with maintainers; [ orivej ]; 69 + license = lib.licenses.gpl3Plus; 70 + platforms = lib.platforms.linux; 71 + maintainers = with lib.maintainers; [ orivej ]; 72 72 }; 73 - } 73 + })