nixpkgs/pkgs/by-name/te/texturepacker/package.nix
2024-11-09 22:53:33 +01:00

48 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
dpkg,
autoPatchelfHook,
qt6,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "texturepacker";
version = "7.5.0";
src = fetchurl {
url = "https://www.codeandweb.com/download/texturepacker/${finalAttrs.version}/TexturePacker-${finalAttrs.version}.deb";
hash = "sha256-zUT9NnBNtgFqNr7e9IAqWuK61MjrQuC+gCi1D2m1kGc=";
};
nativeBuildInputs = [
dpkg
autoPatchelfHook
qt6.wrapQtAppsHook
];
buildInputs = [
qt6.qtbase
qt6.qtdeclarative
qt6.qtsvg
];
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" ];
};
})