pianobooster: refactor meta section and switch to finalAttrs

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