nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 dpkg,
6 autoPatchelfHook,
7 qt6,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "texturepacker";
12 version = "7.9.0";
13
14 src = fetchurl {
15 url = "https://www.codeandweb.com/download/texturepacker/${finalAttrs.version}/TexturePacker-${finalAttrs.version}.deb";
16 hash = "sha256-o613XN8/ypmOEWyDjIQeF6JQsZK5gyDsgmYwd9siU1k=";
17 };
18
19 nativeBuildInputs = [
20 dpkg
21 autoPatchelfHook
22 qt6.wrapQtAppsHook
23 ];
24
25 buildInputs = [
26 qt6.qtbase
27 qt6.qtdeclarative
28 qt6.qtsvg
29 ];
30
31 installPhase = ''
32 mkdir -p $out/bin $out/lib
33 cp usr/lib/texturepacker/{libGrantlee_Templates.so.5,libHQX.so.1.0.0,libPVRTexLib.so} $out/lib
34 cp usr/lib/texturepacker/TexturePacker $out/bin
35 cp -r usr/share $out
36 '';
37
38 meta = {
39 changelog = "https://www.codeandweb.com/texturepacker/download";
40 description = "Sprite sheet creator and game graphics optimizer";
41 homepage = "https://www.codeandweb.com/texturepacker";
42 license = lib.licenses.unfree;
43 mainProgram = "TexturePacker";
44 maintainers = with lib.maintainers; [ tomasajt ];
45 platforms = [ "x86_64-linux" ];
46 };
47})