2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mynewt-newt";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "1.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "apache";
|
|
|
|
repo = "mynewt-newt";
|
|
|
|
rev = "mynewt_${builtins.replaceStrings ["."] ["_"] version}_tag";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-HWZDs4kYWveEqzPRNGNbghc1Yg6hy/Pq3eU5jW8WdHc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-/LK+NSs7YZkw6TRvBQcn6/SszIwAfXN0rt2AKSBV7CE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
# CGO_ENABLED=0 required for mac - "error: 'TARGET_OS_MAC' is not defined, evaluates to 0"
|
|
|
|
# https://github.com/shirou/gopsutil/issues/976
|
2024-09-26 11:04:55 +00:00
|
|
|
CGO_ENABLED = if stdenv.hostPlatform.isLinux then 1 else 0;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://mynewt.apache.org/";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Build and package management tool for embedded development";
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|