summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/dasm
diff options
context:
space:
mode:
authorJesse Wattenbarger <jwatt@broken.watch>2020-04-08 21:56:26 -0400
committerDaniel Schaefer <git@danielschaefer.me>2020-06-18 04:32:25 +0200
commit2d3371713897cb124abf351f9aed2377a4b2fadf (patch)
treec1880b612bbb52128b6d8f0c0266caba2540cf5f /pkgs/development/compilers/dasm
parent6457a26021136eafdb7c2063653010ce4fce36de (diff)
dasm: init at 2.20.13
Co-authored-by: Daniel Schaefer <git@danielschaefer.me>
Diffstat (limited to 'pkgs/development/compilers/dasm')
-rw-r--r--pkgs/development/compilers/dasm/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/compilers/dasm/default.nix b/pkgs/development/compilers/dasm/default.nix
new file mode 100644
index 000000000000..1eb233b90b7f
--- /dev/null
+++ b/pkgs/development/compilers/dasm/default.nix
@@ -0,0 +1,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;
+ };
+}