2021-03-17 23:17:41 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sjasmplus";
|
2021-09-15 01:10:43 +02:00
|
|
|
version = "1.18.3";
|
2021-03-17 23:17:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "z00m128";
|
|
|
|
repo = "sjasmplus";
|
|
|
|
rev = "v${version}";
|
2021-09-15 01:10:43 +02:00
|
|
|
sha256 = "sha256-+FvNYfJ5I91RfuJTiOPhj5KW8HoOq8OgnnpFEgefSGc=";
|
2021-03-17 23:17:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
"CXX=${stdenv.cc.targetPrefix}c++"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -D sjasmplus $out/bin/sjasmplus
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://z00m128.github.io/sjasmplus/";
|
|
|
|
description = "A Z80 assembly language cross compiler. It is based on the SjASM source code by Sjoerd Mastijn";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "sjasmplus";
|
2021-03-17 23:17:41 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ electrified ];
|
|
|
|
};
|
|
|
|
}
|