depot/third_party/nixpkgs/pkgs/development/compilers/sjasmplus/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
837 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "sjasmplus";
version = "1.18.3";
src = fetchFromGitHub {
owner = "z00m128";
repo = "sjasmplus";
rev = "v${version}";
sha256 = "sha256-+FvNYfJ5I91RfuJTiOPhj5KW8HoOq8OgnnpFEgefSGc=";
};
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 = "Z80 assembly language cross compiler. It is based on the SjASM source code by Sjoerd Mastijn";
mainProgram = "sjasmplus";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ electrified ];
};
}