diff options
author | Cillian de Róiste <cillian.deroiste@gmail.com> | 2014-11-06 00:54:12 +0100 |
---|---|---|
committer | Cillian de Róiste <cillian.deroiste@gmail.com> | 2014-11-06 00:54:12 +0100 |
commit | 21f57b8d78f0d3f2c7b041eab38c47deec457894 (patch) | |
tree | 9df3efca3db994204a430970d22258aaf41e3379 /pkgs/applications/misc/tessel/default.nix | |
parent | d0e0d62e618aa651d6850f3828262e28a5873af3 (diff) | |
download | nixlib-21f57b8d78f0d3f2c7b041eab38c47deec457894.tar nixlib-21f57b8d78f0d3f2c7b041eab38c47deec457894.tar.gz nixlib-21f57b8d78f0d3f2c7b041eab38c47deec457894.tar.bz2 nixlib-21f57b8d78f0d3f2c7b041eab38c47deec457894.tar.lz nixlib-21f57b8d78f0d3f2c7b041eab38c47deec457894.tar.xz nixlib-21f57b8d78f0d3f2c7b041eab38c47deec457894.tar.zst nixlib-21f57b8d78f0d3f2c7b041eab38c47deec457894.zip |
Add tessel: cli tools and node libs for tessel.io devices
Diffstat (limited to 'pkgs/applications/misc/tessel/default.nix')
-rw-r--r-- | pkgs/applications/misc/tessel/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/misc/tessel/default.nix b/pkgs/applications/misc/tessel/default.nix new file mode 100644 index 000000000000..6a11713c7501 --- /dev/null +++ b/pkgs/applications/misc/tessel/default.nix @@ -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; + }; +} |