about summary refs log tree commit diff
path: root/pkgs/tools/package-management/mynewt-newt/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/package-management/mynewt-newt/default.nix')
-rw-r--r--pkgs/tools/package-management/mynewt-newt/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/mynewt-newt/default.nix b/pkgs/tools/package-management/mynewt-newt/default.nix
new file mode 100644
index 000000000000..3b37f57d039a
--- /dev/null
+++ b/pkgs/tools/package-management/mynewt-newt/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  name = "mynewt-newt-${version}";
+  version = "1.0.0";
+
+  goPackagePath = "mynewt.apache.org/newt";
+  goDeps = ./deps.nix;
+
+  src = fetchFromGitHub {
+    owner = "apache";
+    repo = "incubator-mynewt-newt";
+    rev = "mynewt_${builtins.replaceStrings ["."] ["_"] version}_tag";
+    sha256 = "1ixqxqizd957prd4j2nijgnkv84rffj8cx5f7aqyjq9nkawjksf6";
+  };
+
+  meta = with stdenv.lib; {
+    homepage = https://mynewt.apache.org/;
+    description = "Build and package management tool for embedded development.";
+    longDescription = ''
+      Apache Newt is a smart build and package management tool,
+      designed for C and C++ applications in embedded contexts. Newt
+      was developed as a part of the Apache Mynewt Operating System.
+    '';
+    license = licenses.asl20;
+    maintainers = with maintainers; [ pjones ];
+    platforms = platforms.all;
+  };
+}