···
versionForFile = v: builtins.replaceStrings [ "." ] [ "" ] v;
-
, archdir ? if (stdenv.hostPlatform.system == "aarch64-linux") then "arm-64bit" else "x86-64bit"
stdenv.mkDerivation rec {
···
-
(lib.getLib stdenv.cc.cc)
-
xorg.libX11 # libX11.so.6
-
xorg.libXext # libXext.so.6
alsa-lib # libasound.so.2
freetype # libfreetype.so.6
···
-
mv -t $out/bin Pianoteq*/${archdir}/*
-
for f in $out/bin/Pianoteq*; do
-
if [ -x "$f" ] && [ -f "$f" ]; then
-
wrapProgram "$f" --prefix LD_LIBRARY_PATH : ${
-
lib.makeLibraryPath (buildInputs ++ [
install -Dm644 ${./pianoteq.svg} $out/share/icons/hicolor/scalable/apps/pianoteq.svg
for size in 16 22 32 48 64 128 256; do
dir=$out/share/icons/hicolor/"$size"x"$size"/apps
···
-
# TODO currently can't install more than one because `lame` clashes
-
stage-trial = mkPianoteq rec {
-
mainProgram = "Pianoteq 8 STAGE";
-
startupWMClass = "Pianoteq STAGE Trial";
-
src = fetchPianoteqTrial {
-
name = "pianoteq_stage_linux_trial_v${versionForFile version}.7z";
-
hash = "sha256-66xbcqNrnVJ+C9FQ8Bg8A7nj/bFrjt6jKheusrXVWvI=";
-
standard-trial = mkPianoteq rec {
-
name = "standard-trial";
-
mainProgram = "Pianoteq 8";
-
startupWMClass = "Pianoteq Trial";
-
src = fetchPianoteqTrial {
-
name = "pianoteq_linux_trial_v${versionForFile version}.7z";
-
hash = "sha256-IFFQMn8EFo5X8sUZV2/vtQOA83NHEFrUsU++CvYbN1c=";
-
stage-6 = mkPianoteq rec {
-
mainProgram = "Pianoteq 6 STAGE";
startupWMClass = "Pianoteq STAGE";
-
archdir = if (stdenv.hostPlatform.system == "aarch64-linux") then throw "Pianoteq stage-6 is not supported on aarch64-linux" else "amd64";
src = fetchPianoteqWithLogin {
name = "pianoteq_stage_linux_v${versionForFile version}.7z";
-
hash = "0jy0hkdynhwv0zhrqkby0hdphgmcc09wxmy74rhg9afm1pzl91jy";
-
stage-7 = mkPianoteq rec {
-
mainProgram = "Pianoteq 7 STAGE";
-
startupWMClass = "Pianoteq STAGE";
-
src = fetchPianoteqWithLogin {
-
name = "pianoteq_stage_linux_v${versionForFile version}.7z";
-
hash = "05w7sv9v38r6ljz9xai816w5z2qqwx88hcfjm241fvgbs54125hx";
-
standard-8 = mkPianoteq rec {
-
mainProgram = "Pianoteq 8";
-
startupWMClass = "Pianoteq";
-
src = fetchPianoteqWithLogin {
-
name = "pianoteq_linux_v${versionForFile version}.7z";
-
hash = "sha256-ME0urUc1jwUKpg+5BdawYo9WhvMsrztYTVOrJTVxtkY=";
-
# TODO other paid binaries, I don't own that so I don't know their hash.