From c457a6294e2389539e448240590eb977f8073413 Mon Sep 17 00:00:00 2001 From: kyehn Date: Fri, 26 Sep 2025 14:41:50 +0800 Subject: [PATCH] sjasmplus: 1.18.3 -> 1.21.0 Diff: https://github.com/z00m128/sjasmplus/compare/v1.18.3...v1.21.0 --- pkgs/by-name/sj/sjasmplus/package.nix | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/sj/sjasmplus/package.nix b/pkgs/by-name/sj/sjasmplus/package.nix index 51ef3793cc03..50cd0a0ff972 100644 --- a/pkgs/by-name/sj/sjasmplus/package.nix +++ b/pkgs/by-name/sj/sjasmplus/package.nix @@ -2,19 +2,22 @@ lib, stdenv, fetchFromGitHub, + luabridge, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "sjasmplus"; - version = "1.18.3"; + version = "1.21.0"; src = fetchFromGitHub { owner = "z00m128"; repo = "sjasmplus"; - rev = "v${version}"; - sha256 = "sha256-+FvNYfJ5I91RfuJTiOPhj5KW8HoOq8OgnnpFEgefSGc="; + tag = "v${finalAttrs.version}"; + hash = "sha256-iPtH/Uviw9m3tcbG44aZO+I6vR95/waXUejpwPPCpqo="; }; + buildInputs = [ luabridge ]; + buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "CXX=${stdenv.cc.targetPrefix}c++" @@ -22,16 +25,18 @@ stdenv.mkDerivation rec { installPhase = '' runHook preInstall - install -D sjasmplus $out/bin/sjasmplus + + install -D --mode=0755 sjasmplus $out/bin/sjasmplus + runHook postInstall ''; - meta = with lib; { + meta = { homepage = "https://z00m128.github.io/sjasmplus/"; - description = "Z80 assembly language cross compiler. It is based on the SjASM source code by Sjoerd Mastijn"; + description = "Z80 assembly language cross compiler based on the SjASM source code by Sjoerd Mastijn"; mainProgram = "sjasmplus"; - license = licenses.bsd3; - platforms = platforms.all; - maintainers = with maintainers; [ electrified ]; + license = lib.licenses.bsd3; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ electrified ]; }; -} +})