depot/third_party/nixpkgs/pkgs/applications/graphics/texturepacker/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

49 lines
1.1 KiB
Nix

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