summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Schröter <dev@felschr.com>2023-06-08 21:05:20 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-06-09 06:27:37 +0000
commit82fcb009daaacb6e0cd1aedaf44df7277055bf52 (patch)
tree7ce8ca17752f01e96ebfa027f9a50c75e8470ffa
parentldtk: 1.3.2 -> 1.3.3 (diff)
downloadnixpkgs-origin/backport-231644-to-release-23.05.tar.gz
ldtk: use finalAttrs pattern with mkDerivation instead of recorigin/backport-231644-to-release-23.05
(cherry picked from commit 24114b5f834cfa732781e1cf901ab07ef995caab)
-rw-r--r--pkgs/applications/editors/ldtk/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/applications/editors/ldtk/default.nix b/pkgs/applications/editors/ldtk/default.nix
index 2777c260a664..48d635138326 100644
--- a/pkgs/applications/editors/ldtk/default.nix
+++ b/pkgs/applications/editors/ldtk/default.nix
@@ -1,12 +1,12 @@
{ lib, stdenv, fetchurl, makeWrapper, makeDesktopItem, copyDesktopItems, unzip
, appimage-run }:
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
pname = "ldtk";
version = "1.3.3";
src = fetchurl {
- url = "https://github.com/deepnight/ldtk/releases/download/v${version}/ubuntu-distribution.zip";
+ url = "https://github.com/deepnight/ldtk/releases/download/v${finalAttrs.version}/ubuntu-distribution.zip";
hash = "sha256-egvAe4nAzPDBeTaAzrqhlDsG60bGNnKXB5Vt16vIZrQ";
};
@@ -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
@@ -50,10 +50,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 ];
};
-}
+})