forked from mirrors/nixpkgs
Add tessel: cli tools and node libs for tessel.io devices
This commit is contained in:
parent
d0e0d62e61
commit
21f57b8d78
40
pkgs/applications/misc/tessel/default.nix
Normal file
40
pkgs/applications/misc/tessel/default.nix
Normal 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;
|
||||
};
|
||||
}
|
1974
pkgs/applications/misc/tessel/package.nix
Normal file
1974
pkgs/applications/misc/tessel/package.nix
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue