aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/compilers/dasm/default.nix
blob: 627ac36329a0ae2e7f1f9a9e6098a068985e0f96 (plain)
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.14.1";

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

  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;
  };
}