2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchsvn }:
|
2020-03-15 16:27:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "acme";
|
2022-05-12 15:27:43 +00:00
|
|
|
version = "unstable-2021-11-05";
|
2020-03-15 16:27:21 +00:00
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = "svn://svn.code.sf.net/p/acme-crossass/code-0/trunk";
|
2022-05-12 15:27:43 +00:00
|
|
|
rev = "323";
|
|
|
|
sha256 = "1dzvip90yf1wg0fhfghn96dwrhg289d06b624px9a2wwy3vp5ryg";
|
2020-03-15 16:27:21 +00:00
|
|
|
};
|
|
|
|
|
treewide: noop: refer to `src.name` or similar where appropriate, part 3: more use cases
This continues where d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e left off. Similarly
to that commit, this commit this also points `sourceRoot`s to `src.name` and similar
instead of keeping hardcoded names, and edits other derivation attrs do do the same,
where appropriate.
Also, similarly to d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e some of expressions this
edits use `srcs` attribute with customly-named sources, so they have to be moved
into `let` blocks to keep evaluation efficient (the other, worse, way to do this
would to recurcively refer to `elemAt n finalAttrs.srcs` or, similarly, with `rec`).
2023-08-08 17:18:01 +00:00
|
|
|
sourceRoot = "${src.name}/src";
|
2020-03-15 16:27:21 +00:00
|
|
|
|
2020-03-27 20:48:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "= gcc" "?= gcc"
|
|
|
|
'';
|
|
|
|
|
2022-05-12 15:27:43 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
makeFlags = [ "BINDIR=$(out)/bin" ];
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A multi-platform cross assembler for 6502/6510/65816 CPUs";
|
2020-03-15 16:27:21 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/acme-crossass/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
|
|
};
|
|
|
|
}
|