3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/sjasmplus/default.nix

33 lines
808 B
Nix
Raw Normal View History

2021-03-17 22:17:41 +00:00
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "sjasmplus";
2021-09-15 00:10:43 +01:00
version = "1.18.3";
2021-03-17 22:17:41 +00:00
src = fetchFromGitHub {
owner = "z00m128";
repo = "sjasmplus";
rev = "v${version}";
2021-09-15 00:10:43 +01:00
sha256 = "sha256-+FvNYfJ5I91RfuJTiOPhj5KW8HoOq8OgnnpFEgefSGc=";
2021-03-17 22:17:41 +00: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";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ electrified ];
};
}