Merge pull request #231644 from felschr/ldtk-1.3

ldtk: 1.3.2 -> 1.3.3
This commit is contained in:
Pol Dellaiera 2023-06-09 08:26:58 +02:00 committed by GitHub
commit c2bb8ff0ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,13 @@
{ lib, stdenv, fetchurl, makeWrapper, makeDesktopItem, copyDesktopItems, unzip
, appimage-run, nix-update-script }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "ldtk";
version = "1.3.2";
version = "1.3.3";
src = fetchurl {
url = "https://github.com/deepnight/ldtk/releases/download/v${version}/ubuntu-distribution.zip";
hash = "sha256-8GiMm1Nb2jRLFWtGNsSfrW1jIi9yKCcyuUKwMEqoUZI=";
url = "https://github.com/deepnight/ldtk/releases/download/v${finalAttrs.version}/ubuntu-distribution.zip";
hash = "sha256-egvAe4nAzPDBeTaAzrqhlDsG60bGNnKXB5Vt16vIZrQ";
};
nativeBuildInputs = [ unzip makeWrapper copyDesktopItems appimage-run ];
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
runHook preUnpack
unzip $src
appimage-run -x src 'LDtk ${version} installer.AppImage'
appimage-run -x src 'LDtk ${finalAttrs.version} installer.AppImage'
runHook postUnpack
'';
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
install -Dm644 'LDtk ${version} installer.AppImage' $out/share/ldtk.AppImage
install -Dm644 'LDtk ${finalAttrs.version} installer.AppImage' $out/share/ldtk.AppImage
makeWrapper ${appimage-run}/bin/appimage-run $out/bin/ldtk \
--add-flags $out/share/ldtk.AppImage
install -Dm644 src/ldtk.png $out/share/icons/hicolor/1024x1024/apps/ldtk.png
@ -52,10 +52,10 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Modern, lightweight and efficient 2D level editor";
homepage = "https://ldtk.io/";
changelog = "https://github.com/deepnight/ldtk/releases/tag/v${version}";
changelog = "https://github.com/deepnight/ldtk/releases/tag/v${finalAttrs.version}";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ felschr ];
sourceProvenance = with sourceTypes; [ binaryBytecode ];
};
}
})