2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, fetchpatch }:
|
2017-05-17 17:30:12 +01:00
|
|
|
|
2020-01-11 13:48:36 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mynewt-newt";
|
2020-01-11 13:48:36 +00:00
|
|
|
version = "1.7.0";
|
2017-05-17 17:30:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "apache";
|
2020-01-11 13:48:36 +00:00
|
|
|
repo = "mynewt-newt";
|
2017-05-17 17:30:12 +01:00
|
|
|
rev = "mynewt_${builtins.replaceStrings ["."] ["_"] version}_tag";
|
2020-01-11 13:48:36 +00:00
|
|
|
sha256 = "0rwn4ghh7kal8csxlh0w1p29b5m1nam9lkrxla5wdfhnzbsg8hfa";
|
2017-05-17 17:30:12 +01:00
|
|
|
};
|
|
|
|
|
2020-01-12 12:40:00 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/apache/mynewt-newt/commit/6a51e35565323ebe8feb8d1aa6e00960b6ce662e.patch";
|
2020-01-12 12:40:00 +00:00
|
|
|
sha256 = "186yha60jzcjq8r04w12rqqh3cin2w974l77hz2ixhmjzyr56wqv";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/apache/mynewt-newt/commit/7d4ef3fe65a9a83cc58e7bd973654ad235cc68bc.patch";
|
2020-01-12 12:40:00 +00:00
|
|
|
sha256 = "01scmq58bfr4c9icqzm79q7a55izflsb3mlx9xn0dv92m3mbprx7";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = "1sh9mx3lc28fzvc1yrhz58rlbaac7aq1dqyvxwj98vld3kigpv1z";
|
2020-01-11 13:48:36 +00:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2017-05-17 17:30:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://mynewt.apache.org/";
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Build and package management tool for embedded development";
|
2017-05-17 17:30:12 +01: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 ];
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2017-05-17 17:30:12 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|