nixpkgs/pkgs/by-name/te/texturepacker/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
Nix
Raw Normal View History

2024-11-09 21:51:53 +00:00
{
lib,
stdenv,
fetchurl,
dpkg,
autoPatchelfHook,
qt6,
2023-11-11 21:41:32 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
pname = "texturepacker";
2024-11-09 21:53:33 +00:00
version = "7.5.0";
2023-11-11 21:41:32 +00:00
src = fetchurl {
url = "https://www.codeandweb.com/download/texturepacker/${finalAttrs.version}/TexturePacker-${finalAttrs.version}.deb";
2024-11-09 21:53:33 +00:00
hash = "sha256-zUT9NnBNtgFqNr7e9IAqWuK61MjrQuC+gCi1D2m1kGc=";
2023-11-11 21:41:32 +00:00
};
nativeBuildInputs = [
dpkg
autoPatchelfHook
2024-11-09 21:51:53 +00:00
qt6.wrapQtAppsHook
2023-11-11 21:41:32 +00:00
];
buildInputs = [
2024-11-09 21:51:53 +00:00
qt6.qtbase
qt6.qtdeclarative
qt6.qtsvg
2023-11-11 21:41:32 +00:00
];
installPhase = ''
mkdir -p $out/bin $out/lib
cp usr/lib/texturepacker/{libGrantlee_Templates.so.5,libHQX.so.1.0.0,libPVRTexLib.so} $out/lib
cp usr/lib/texturepacker/TexturePacker $out/bin
cp -r usr/share $out
'';
meta = {
changelog = "https://www.codeandweb.com/texturepacker/download";
description = "Sprite sheet creator and game graphics optimizer";
homepage = "https://www.codeandweb.com/texturepacker";
license = lib.licenses.unfree;
mainProgram = "TexturePacker";
maintainers = with lib.maintainers; [ tomasajt ];
platforms = [ "x86_64-linux" ];
};
})