mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
Merge pull request #266915 from TomaSajt/texturepacker
texturepacker: init at 7.1.0
This commit is contained in:
commit
1cfcc7c2c2
49
pkgs/applications/graphics/texturepacker/default.nix
Normal file
49
pkgs/applications/graphics/texturepacker/default.nix
Normal file
@ -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" ];
|
||||
};
|
||||
})
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user