blob: 422181679846734bfa1ed4165a4ba1043681d624 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "sjasmplus";
version = "1.18.2";
src = fetchFromGitHub {
owner = "z00m128";
repo = "sjasmplus";
rev = "v${version}";
sha256 = "04348zcmc0b3crzwhvj1shx6f1n3x05vs8d5qdm7qhgdfki8r74v";
};
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";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ electrified ];
};
}
|