btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / ac / acme / package.nix
blob855abe1844d6e4bd377882be8c20d65ae1b5b28c
1 { lib, stdenv, fetchsvn }:
3 stdenv.mkDerivation rec {
4   pname = "acme";
5   version = "unstable-2021-11-05";
7   src = fetchsvn {
8     url = "svn://svn.code.sf.net/p/acme-crossass/code-0/trunk";
9     rev = "323";
10     sha256 = "1dzvip90yf1wg0fhfghn96dwrhg289d06b624px9a2wwy3vp5ryg";
11   };
13   sourceRoot = "${src.name}/src";
15   postPatch = ''
16     substituteInPlace Makefile \
17       --replace "= gcc" "?= gcc"
18   '';
20   enableParallelBuilding = true;
22   makeFlags = [ "BINDIR=$(out)/bin" ];
24   meta = with lib; {
25     description = "Multi-platform cross assembler for 6502/6510/65816 CPUs";
26     mainProgram = "acme";
27     homepage = "https://sourceforge.net/projects/acme-crossass/";
28     license = licenses.gpl2Plus;
29     platforms = platforms.all;
30     maintainers = with maintainers; [ OPNA2608 ];
31   };