summary refs log tree commit diff
diff options
context:
space:
mode:
authorVlad M <dywedir@gra.red>2023-11-15 16:26:20 +0200
committerGitHub <noreply@github.com>2023-11-15 16:26:20 +0200
commit1cfcc7c2c2e8735bd8d58bef22e0351e0370cc8d (patch)
treeba8a274bd11b68c27df22bf44e6e567dc1dab0ca
parent08dd60646d0a1d1fbe8beba200f606c3d57fc7df (diff)
parenteb4f8daaabddb2412a328d3ba0e220df6a8e70b4 (diff)
downloadnixpkgs-1cfcc7c2c2e8735bd8d58bef22e0351e0370cc8d.tar
nixpkgs-1cfcc7c2c2e8735bd8d58bef22e0351e0370cc8d.tar.gz
nixpkgs-1cfcc7c2c2e8735bd8d58bef22e0351e0370cc8d.tar.bz2
nixpkgs-1cfcc7c2c2e8735bd8d58bef22e0351e0370cc8d.tar.lz
nixpkgs-1cfcc7c2c2e8735bd8d58bef22e0351e0370cc8d.tar.xz
nixpkgs-1cfcc7c2c2e8735bd8d58bef22e0351e0370cc8d.tar.zst
nixpkgs-1cfcc7c2c2e8735bd8d58bef22e0351e0370cc8d.zip
Merge pull request #266915 from TomaSajt/texturepacker
texturepacker: init at 7.1.0
-rw-r--r--pkgs/applications/graphics/texturepacker/default.nix49
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/texturepacker/default.nix b/pkgs/applications/graphics/texturepacker/default.nix
new file mode 100644
index 00000000000..14769c02af0
--- /dev/null
+++ b/pkgs/applications/graphics/texturepacker/default.nix
@@ -0,0 +1,49 @@
+{ lib
+, stdenv
+, fetchurl
+, dpkg
+, autoPatchelfHook
+, wrapQtAppsHook
+, qtbase
+, qtdeclarative
+, qtsvg
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "texturepacker";
+  version = "7.1.0";
+
+  src = fetchurl {
+    url = "https://www.codeandweb.com/download/texturepacker/${finalAttrs.version}/TexturePacker-${finalAttrs.version}.deb";
+    hash = "sha256-9HbmdMPTp6qZCEU/lIZv4HbjKUlEtPVval+y0tiYObc=";
+  };
+
+  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" ];
+  };
+})
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 6ae1dd9520d..acfe1a0ab13 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -35758,6 +35758,8 @@ with pkgs;
 
   texture-synthesis = callPackage ../tools/graphics/texture-synthesis { };
 
+  texturepacker = qt6.callPackage ../applications/graphics/texturepacker { };
+
   tty-solitaire = callPackage ../applications/misc/tty-solitaire { };
 
   termtosvg = callPackage ../tools/misc/termtosvg { };