summary refs log tree commit diff
path: root/pkgs/development/compilers/microscheme/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/microscheme/default.nix')
-rw-r--r--pkgs/development/compilers/microscheme/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/compilers/microscheme/default.nix b/pkgs/development/compilers/microscheme/default.nix
new file mode 100644
index 00000000000..9ed5b8950e9
--- /dev/null
+++ b/pkgs/development/compilers/microscheme/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchzip, vim, avrdude, avrgcclibc, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  name = "microscheme-${version}";
+  version = "0.9.2";
+
+  src = fetchzip {
+    name = "${name}-src";
+    url = "https://github.com/ryansuchocki/microscheme/archive/v${version}.tar.gz";
+    sha256 = "0ly1cphvnsip70kng9q0blb07pkyp9allav42sr6ybswqfqg60j9";
+  };
+
+  buildInputs = [ makeWrapper vim ];
+
+  installPhase = ''
+    make install PREFIX=$out
+
+    wrapProgram $out/bin/microscheme \
+      --prefix PATH : "${avrdude}/bin:${avrgcclibc}/bin"
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://microscheme.org;
+    description = "A Scheme subset for Atmel microcontrollers";
+    longDescription = ''
+      Microscheme is a Scheme subset/variant designed for Atmel
+      microcontrollers, especially as found on Arduino boards.
+    '';
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ ardumont ];
+  };
+}