nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "dasm";
5 version = "2.20.13";
6
7 src = fetchFromGitHub {
8 owner = "dasm-assembler";
9 repo = "dasm";
10 rev = version;
11 sha256 = "1nr4kvw42vyc6i4p1c06jlih11rhbjjxc27dc7cx5qj635xf4jcf";
12 };
13
14 configurePhase = false;
15 installPhase = ''
16 mkdir -p $out/bin
17 install bin/* $out/bin
18 '';
19
20 preCheck = ''
21 patchShebangs ./test/
22 '';
23
24 checkTarget = "test";
25 doCheck = true;
26
27 meta = with stdenv.lib; {
28 description = "Assembler for 6502 and other 8-bit microprocessors";
29 homepage = "https://dasm-assembler.github.io";
30 license = licenses.gpl2;
31 maintainers = [ maintainers.jwatt ];
32 platforms = platforms.all;
33 };
34}