fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
30 lines
742 B
Nix
30 lines
742 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rasm";
|
|
version = "2.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "EdouardBERGE";
|
|
repo = "rasm";
|
|
rev = "v${version}";
|
|
hash = "sha256-PCjL/MIAIbiS4CKpegcoWIA8Ek2cE6pgbIMu7TzTjPQ=";
|
|
};
|
|
|
|
# by default the EXEC variable contains `rasm.exe`
|
|
makeFlags = [ "EXEC=rasm" ];
|
|
|
|
installPhase = ''
|
|
install -Dt $out/bin rasm
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://rasm.wikidot.com/english-index:home";
|
|
description = "Z80 assembler";
|
|
mainProgram = "rasm";
|
|
# use -n option to display all licenses
|
|
license = licenses.mit; # expat version
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|