add tunerstudio package
Some checks failed
Build tests / build-hosts (pull_request) Successful in 22s
Flake check / flake-check (pull_request) Failing after 3s

This commit is contained in:
sid 2026-03-07 13:48:18 +01:00
parent 5d1facefed
commit 5ec210f9dc
2 changed files with 64 additions and 0 deletions

View file

@ -19,6 +19,7 @@
synapse_change_display_name = pkgs.callPackage ./synapse_change_display_name { }; synapse_change_display_name = pkgs.callPackage ./synapse_change_display_name { };
synix-docs = pkgs.callPackage ./synix-docs { }; synix-docs = pkgs.callPackage ./synix-docs { };
trelis-gitingest-mcp = pkgs.callPackage ./trelis-gitingest-mcp { }; trelis-gitingest-mcp = pkgs.callPackage ./trelis-gitingest-mcp { };
tunerstudio = pkgs.callPackage ./tunerstudio { };
# marker-pdf = pkgs.callPackage ./marker-pdf { }; # FIXME # marker-pdf = pkgs.callPackage ./marker-pdf { }; # FIXME
} }

View file

@ -0,0 +1,63 @@
{
lib,
stdenv,
makeWrapper,
jdk8,
libGL,
xorg,
alsa-lib,
}:
stdenv.mkDerivation rec {
pname = "tunerstudio";
version = "3.3.01";
src = builtins.fetchTarball {
url = "http://tunerstudio.com/downloads2/TunerStudioMS_v${version}.tar.gz";
sha256 = "sha256:16xq4ylnlfjacpi9009l6l92zhy1c9sbxvmbkykilaipnflrhwsn";
};
nativeBuildInputs = [
makeWrapper
];
buildInputs = [
jdk8
libGL
xorg.libX11
alsa-lib
];
installPhase = ''
runHook preInstall
mkdir -p $out/share/tunerstudio
mkdir -p $out/bin
cp -r . $out/share/tunerstudio/
makeWrapper ${jdk8}/bin/java $out/bin/tunerstudio \
--run "cd $out/share/tunerstudio" \
--add-flags "-Dcom.ibm.crypto.provider.DoRSATypeChecking=false" \
--add-flags "-Djava.library.path=lib/alternateLinuxDrivers/x86_64-linux:lib" \
--add-flags "-Dfile.encoding=UTF8" \
--add-flags "-cp '.:lib:plugins'" \
--add-flags "-jar $out/share/tunerstudio/TunerStudioMS.jar" \
--prefix LD_LIBRARY_PATH : "${
lib.makeLibraryPath [
libGL
xorg.libX11
alsa-lib
]
}"
runHook postInstall
'';
meta = {
description = "MSTune / TunerStudio MS - ECU Tuning Software";
homepage = "https://www.tunerstudio.com/";
license = lib.licenses.unfree;
platforms = lib.platforms.linux;
};
}