jaspersoft-studio-community: init at 6.21.3

This commit is contained in:
uku 2024-12-11 10:27:19 +01:00
parent cf541d2e22
commit c9803a9349
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 56 additions and 0 deletions

View file

@ -5,4 +5,5 @@ final: prev: {
asus-numpad = prev.callPackage ./asus-numpad.nix { };
openwebstart = prev.callPackage ./openwebstart.nix { };
json2cdn = prev.callPackage ./json2cdn/package.nix { };
jaspersoft-studio-community = prev.callPackage ./jaspersoft-studio-community.nix { };
}

View file

@ -0,0 +1,55 @@
{
stdenvNoCC,
autoPatchelfHook,
copyDesktopItems,
makeDesktopItem,
requireFile,
temurin-bin-17,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "jaspersoft-studio-community";
version = "6.21.3";
src = requireFile {
name = "js-studiocomm_${finalAttrs.version}_linux_x86_64.tgz";
url = "https://community.jaspersoft.com/download-jaspersoft/community-edition/jaspersoft-studio_${finalAttrs.version}";
hash = "sha256-llxWq2hNTlHC2slhov0VDK2mJu2NZ2xOh3Rut9XDKac=";
};
nativeBuildInputs = [
autoPatchelfHook
copyDesktopItems
];
installPhase = ''
runHook preInstall
rm -rf features/jre.linux.gtk.x86_64.feature_17.0.8.1_1/eclipsetemurin_jre
ln -s ${temurin-bin-17} features/jre.linux.gtk.x86_64.feature_17.0.8.1_1/eclipsetemurin_jre
mkdir -p $out/share/jaspersoft-studio-community
cp -r . $out/share/jaspersoft-studio-community
install -Dm644 icon.xpm $out/share/pixmaps/jaspersoft-studio-community.xpm
mkdir -p $out/bin
ln -s "$out/share/jaspersoft-studio-community/Jaspersoft Studio" $out/bin/jaspersoft-studio-community
runHook postInstall
'';
dontBuild = true;
dontCheck = true;
desktopItems = [
(makeDesktopItem {
name = "JasperSoft Studio Community";
type = "Application";
desktopName = "JasperSoft Studio Community";
exec = "jaspersoft-studio-community";
icon = "jaspersoft-studio-community";
})
];
meta.mainProgram = "jaspersoft-studio-community";
})