-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
30 lines (30 loc) · 838 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ nixpkgs ? import <nixpkgs> {}, port ? "ttyACM0", usb ? "false" }:
with nixpkgs;
let
specpath = ./spec/default.nix;
spec = import specpath { inherit nixpkgs; };
duebuilderpath = fetchFromGitHub {
owner = "avieth";
repo = "arduino";
rev = "5bb1b5250c61e56dde62ad418eb40737974d6ebb";
sha256 = "12sai32d6fh6f7nbaf2a9v53fhxwm74y71hmaynykgi4k0sl5fg6";
};
duebuilder = import duebuilderpath {
inherit nixpkgs;
usb_manufacturer = "Robotique Haply, Inc.";
usb_product = "Rideau Mk II Ventilator";
};
inputs = [ pkgs.coreutils ];
in
stdenv.mkDerivation {
name = "os-ventilator";
version = "0.0.0.1";
builder = "${bash}/bin/bash";
args = [ ./build.sh ];
buildInputs = inputs;
src = ./arduinobits;
spec = spec;
duebuilder = duebuilder;
port = port;
usb = usb;
}