2021-01-11 07:54:33 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, cmake }:
|
2020-07-29 11:08:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "scas";
|
2020-09-03 15:21:47 +01:00
|
|
|
|
2020-10-01 14:09:29 +01:00
|
|
|
version = "0.5.3";
|
2020-09-03 15:21:47 +01:00
|
|
|
|
2020-07-29 11:08:51 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KnightOS";
|
|
|
|
repo = "scas";
|
|
|
|
rev = version;
|
2020-10-01 14:09:29 +01:00
|
|
|
sha256 = "0z6r07cl92kq860ddas5p88l990ih9cfqlzy5y4mk5hrmjzya60j";
|
2020-07-29 11:08:51 +01:00
|
|
|
};
|
2020-09-03 15:21:47 +01:00
|
|
|
|
2020-10-01 14:09:29 +01:00
|
|
|
cmakeFlags = [ "-DSCAS_LIBRARY=1" ];
|
2020-09-03 15:21:47 +01:00
|
|
|
|
2020-10-01 14:09:29 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-09-03 15:21:47 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-29 11:08:51 +01:00
|
|
|
homepage = "https://knightos.org/";
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Assembler and linker for the Z80";
|
2020-07-29 11:08:51 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
2020-10-01 14:09:29 +01:00
|
|
|
platforms = platforms.unix;
|
2020-07-29 11:08:51 +01:00
|
|
|
};
|
|
|
|
}
|