summary refs log tree commit diff
path: root/pkgs/development/arduino/arduino-core
diff options
context:
space:
mode:
authorAntono Vasiljev <self@antono.info>2012-11-28 04:55:24 +0300
committerAntono Vasiljev <self@antono.info>2012-11-28 04:55:24 +0300
commit1bf18a589c1bbe0f405e353592201caeef084125 (patch)
tree3b4ffc8349450e7e1ccc7636c0967b6093a9c367 /pkgs/development/arduino/arduino-core
parent7e4d8632529ff02cc759c12b83fb87da823acf47 (diff)
downloadnixpkgs-1bf18a589c1bbe0f405e353592201caeef084125.tar
nixpkgs-1bf18a589c1bbe0f405e353592201caeef084125.tar.gz
nixpkgs-1bf18a589c1bbe0f405e353592201caeef084125.tar.bz2
nixpkgs-1bf18a589c1bbe0f405e353592201caeef084125.tar.lz
nixpkgs-1bf18a589c1bbe0f405e353592201caeef084125.tar.xz
nixpkgs-1bf18a589c1bbe0f405e353592201caeef084125.tar.zst
nixpkgs-1bf18a589c1bbe0f405e353592201caeef084125.zip
arduino-core libraries +inotool
Diffstat (limited to 'pkgs/development/arduino/arduino-core')
-rw-r--r--pkgs/development/arduino/arduino-core/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/arduino/arduino-core/default.nix b/pkgs/development/arduino/arduino-core/default.nix
new file mode 100644
index 00000000000..27d71227424
--- /dev/null
+++ b/pkgs/development/arduino/arduino-core/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchurl, jdk, jre, ant, coreutils, gnugrep }:
+
+stdenv.mkDerivation rec {
+
+  version = "1.0.2";
+  name = "arduino-core";
+
+  src = fetchurl {
+    url = "http://arduino.googlecode.com/files/arduino-${version}-src.tar.gz";
+    sha256 = "0nszl2hdjjgxk87gyk0xi0ww9grbq83hch3iqmpaf9yp4y9bra0x";
+  };
+
+  buildInputs = [ jdk ant ];
+
+  phases = "unpackPhase patchPhase buildPhase installPhase";
+
+  patchPhase = ''
+  #
+  '';
+
+  buildPhase = ''
+    cd ./core && ant 
+    cd ../build && ant 
+    cd ..
+  '';
+
+  installPhase = ''
+    mkdir -p $out/share/arduino
+    cp -r ./build/linux/work/hardware/ $out/share/arduino
+    cp -r ./build/linux/work/libraries/ $out/share/arduino
+    cp -r ./build/linux/work/tools/ $out/share/arduino
+    cp -r ./build/linux/work/lib/ $out/share/arduino
+    echo ${version} > $out/share/arduino/lib/version.txt
+  '';
+
+  meta = {
+    description = "Arduino libraries";
+    homepage = http://arduino.cc/;
+    license = "GPL";
+  }; 
+}