2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gcc, gmp, openssl, zlib }:
|
2020-10-07 14:41:09 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spasm-ng";
|
|
|
|
|
|
|
|
version = "unstable-2020-08-03";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alberthdev";
|
|
|
|
repo = "spasm-ng";
|
|
|
|
rev = "221898beff2442f459b80ab89c8e1035db97868e";
|
|
|
|
sha256 = "0xspxmp2fir604b4xsk4hi1gjv61rnq2ypppr7cj981jlhicmvjj";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gcc ];
|
|
|
|
|
|
|
|
buildInputs = [ gmp openssl zlib ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 spasm -t $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
meta = with lib; {
|
2020-10-07 14:41:09 +02:00
|
|
|
homepage = "https://github.com/alberthdev/spasm-ng";
|
|
|
|
description = "Z80 assembler with extra features to support development for TI calculators";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|