about summary refs log tree commit diff
path: root/pkgs/development/compilers/dasm/default.nix
blob: 1eb233b90b7f8343e674a2269d04af208a369264 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "dasm";
  version = "2.20.13";

  src = fetchFromGitHub {
    owner = "dasm-assembler";
    repo = "dasm";
    rev = version;
    sha256 = "1nr4kvw42vyc6i4p1c06jlih11rhbjjxc27dc7cx5qj635xf4jcf";
  };

  configurePhase = false;
  installPhase = ''
    mkdir -p $out/bin
    install bin/* $out/bin
  '';

  preCheck = ''
    patchShebangs ./test/
  '';

  checkTarget = "test";
  doCheck = true;

  meta = with stdenv.lib; {
    description = "Assembler for 6502 and other 8-bit microprocessors";
    homepage = "https://dasm-assembler.github.io";
    license = licenses.gpl2;
    maintainers = [ maintainers.jwatt ];
    platforms = platforms.all;
  };
}