about summary refs log tree commit diff
path: root/pkgs/development/compilers/sjasmplus
diff options
context:
space:
mode:
authored <linux@maidavale.org>2021-03-17 22:17:41 +0000
committered <linux@maidavale.org>2021-03-18 18:33:35 +0000
commite82f32bfd886b4197a3f76a28717bf1b8971814c (patch)
tree606c8789d49add8e109b8935e41abb379a314678 /pkgs/development/compilers/sjasmplus
parentf4f6715c72ed4b50e69f2356bfdbbd9e4bf1541d (diff)
sjasmplus: init at 1.18.2
Diffstat (limited to 'pkgs/development/compilers/sjasmplus')
-rw-r--r--pkgs/development/compilers/sjasmplus/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/compilers/sjasmplus/default.nix b/pkgs/development/compilers/sjasmplus/default.nix
new file mode 100644
index 0000000000000..4221816798467
--- /dev/null
+++ b/pkgs/development/compilers/sjasmplus/default.nix
@@ -0,0 +1,32 @@
+{ lib, stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  pname = "sjasmplus";
+  version = "1.18.2";
+
+  src = fetchFromGitHub {
+    owner = "z00m128";
+    repo = "sjasmplus";
+    rev = "v${version}";
+    sha256 = "04348zcmc0b3crzwhvj1shx6f1n3x05vs8d5qdm7qhgdfki8r74v";
+  };
+
+  buildFlags = [
+    "CC=${stdenv.cc.targetPrefix}cc"
+    "CXX=${stdenv.cc.targetPrefix}c++"
+  ];
+
+  installPhase = ''
+    runHook preInstall
+    install -D sjasmplus $out/bin/sjasmplus
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    homepage = "https://z00m128.github.io/sjasmplus/";
+    description = "A Z80 assembly language cross compiler. It is based on the SjASM source code by Sjoerd Mastijn";
+    license = licenses.bsd3;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ electrified ];
+  };
+}