about summary refs log tree commit diff
path: root/pkgs/tools/package-management
diff options
context:
space:
mode:
authorTom Hall <tahall256@protonmail.ch>2020-01-12 12:40:00 +0000
committerTom Hall <tahall256@protonmail.ch>2020-01-31 17:58:05 +0000
commiteb0c48b1c20205f981c70462464dd11bd0668ac2 (patch)
tree1674f97a1a5e41a6635ba544a1fe1161e21ad9c6 /pkgs/tools/package-management
parent9a205f8ab64ab887834df6b9cb99ea4e2af431e2 (diff)
downloadnixlib-eb0c48b1c20205f981c70462464dd11bd0668ac2.tar
nixlib-eb0c48b1c20205f981c70462464dd11bd0668ac2.tar.gz
nixlib-eb0c48b1c20205f981c70462464dd11bd0668ac2.tar.bz2
nixlib-eb0c48b1c20205f981c70462464dd11bd0668ac2.tar.lz
nixlib-eb0c48b1c20205f981c70462464dd11bd0668ac2.tar.xz
nixlib-eb0c48b1c20205f981c70462464dd11bd0668ac2.tar.zst
nixlib-eb0c48b1c20205f981c70462464dd11bd0668ac2.zip
mynewt-newt: patch to fix failure running upgrade on mcuboot
Diffstat (limited to 'pkgs/tools/package-management')
-rw-r--r--pkgs/tools/package-management/mynewt-newt/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/tools/package-management/mynewt-newt/default.nix b/pkgs/tools/package-management/mynewt-newt/default.nix
index 9b99493575e5..b40257d42f4b 100644
--- a/pkgs/tools/package-management/mynewt-newt/default.nix
+++ b/pkgs/tools/package-management/mynewt-newt/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildGoModule, fetchFromGitHub }:
+{ stdenv, buildGoModule, fetchFromGitHub, fetchpatch }:
 
 buildGoModule rec {
   pname = "mynewt-newt";
@@ -11,6 +11,17 @@ buildGoModule rec {
     sha256 = "0rwn4ghh7kal8csxlh0w1p29b5m1nam9lkrxla5wdfhnzbsg8hfa";
   };
 
+  patches = [
+    (fetchpatch {
+      url = https://github.com/apache/mynewt-newt/commit/6a51e35565323ebe8feb8d1aa6e00960b6ce662e.patch;
+      sha256 = "186yha60jzcjq8r04w12rqqh3cin2w974l77hz2ixhmjzyr56wqv";
+    })
+    (fetchpatch {
+      url = https://github.com/apache/mynewt-newt/commit/7d4ef3fe65a9a83cc58e7bd973654ad235cc68bc.patch;
+      sha256 = "01scmq58bfr4c9icqzm79q7a55izflsb3mlx9xn0dv92m3mbprx7";
+    })
+  ];
+
   modSha256 = "068r8wa2pgd68jv50x0l1w8n96f97b3mgv7z6f85280ahgywaasq";
 
   meta = with stdenv.lib; {