From 88f20f352a0e95edc61089438df41842a60c9955 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Wed, 6 Jan 2021 10:34:49 -0600 Subject: [PATCH] octave.pkgs.arduino: init at 0.6.0 --- .../octave-modules/arduino/default.nix | 33 +++++++++++++++++++ pkgs/top-level/octave-packages.nix | 2 -- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/octave-modules/arduino/default.nix diff --git a/pkgs/development/octave-modules/arduino/default.nix b/pkgs/development/octave-modules/arduino/default.nix new file mode 100644 index 00000000000..f6536108e6c --- /dev/null +++ b/pkgs/development/octave-modules/arduino/default.nix @@ -0,0 +1,33 @@ +{ buildOctavePackage +, lib +, fetchurl +, instrument-control +, arduino +}: + +buildOctavePackage rec { + pname = "arduino"; + version = "0.6.0"; + + src = fetchurl { + url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz"; + sha256 = "0fnfk206n31s7diijaylmqhxnr88z6l3l3vsxq4z8gcp9ylm9nkj"; + }; + + requiredOctavePackages = [ + instrument-control + ]; + + # Might be able to use pkgs.arduino-core + propagatedBuildInputs = [ + arduino + ]; + + meta = with lib; { + name = "Octave Arduino Toolkit"; + homepage = "https://octave.sourceforge.io/arduino/index.html"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ KarlJoad ]; + description = "Basic Octave implementation of the matlab arduino extension, allowing communication to a programmed arduino board to control its hardware"; + }; +} diff --git a/pkgs/top-level/octave-packages.nix b/pkgs/top-level/octave-packages.nix index 05d8637b027..0790e6cc0b5 100644 --- a/pkgs/top-level/octave-packages.nix +++ b/pkgs/top-level/octave-packages.nix @@ -55,8 +55,6 @@ makeScope newScope (self: arduino = callPackage ../development/octave-modules/arduino { inherit (pkgs) arduino; - # Full arduino right now. Might be able to use pkgs.arduino-core - # Needs arduinoIDE as a runtime dependency. }; audio = callPackage ../development/octave-modules/audio {