Add tessel: cli tools and node libs for tessel.io devices

This commit is contained in:
Cillian de Róiste 2014-11-06 00:54:12 +01:00
parent d0e0d62e61
commit 21f57b8d78
3 changed files with 2016 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ stdenv, fetchurl, callPackage, libusb1, pkgconfig, python, utillinux }:
with stdenv.lib;
let
nodePackages = callPackage (import ../../../top-level/node-packages.nix) {
neededNatives = [ libusb1 pkgconfig python utillinux ];
self = nodePackages;
generated = ./package.nix;
};
in nodePackages.buildNodePackage rec {
name = "tessel-0.3.16";
bin = true;
src = [
(fetchurl {
url = "http://registry.npmjs.org/tessel/-/tessel-0.3.16.tgz";
name = "tessel-0.3.16.tgz";
sha1 = "900a8d897ba03d7a9d5927697180284772d70738";
})
];
deps = (filter (v: nixType v == "derivation") (attrValues nodePackages));
postInstall = ''
mkdir -p $out/etc/udev/rules.d
cp $out/lib/node_modules/tessel/install/85-tessel.rules $out/etc/udev/rules.d/
'';
passthru.names = [ "tessel" ];
meta = {
description = "Command line tools and programmatic access library for Tessel devices";
homepage = https://tessel.io;
license = licenses.mit;
maintainers = with maintainers; [ goibhniu ];
platforms = with platforms; linux;
};
}

File diff suppressed because it is too large Load diff

View file

@ -2437,6 +2437,8 @@ let
telnet = callPackage ../tools/networking/telnet { };
tessel = callPackage ../applications/misc/tessel { };
texmacs = callPackage ../applications/editors/texmacs {
tex = texLive; /* tetex is also an option */
extraFonts = true;