summary refs log tree commit diff
path: root/pkgs/tools/package-management/mynewt-newt/default.nix
blob: 74c2fd59d4e366871a412d673af9e6cf7a6af1f5 (plain) (blame)
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
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  name = "mynewt-newt-${version}";
  version = "1.3.0";

  goPackagePath = "mynewt.apache.org/newt";
  goDeps = ./deps.nix;

  src = fetchFromGitHub {
    owner = "apache";
    repo = "incubator-mynewt-newt";
    rev = "mynewt_${builtins.replaceStrings ["."] ["_"] version}_tag";
    sha256 = "0ia6q1wf3ki2yw8ngw5gnbdrb7268qwi078j05f8gs1sppb3g563";
  };

  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.linux;
  };
}