about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-01-05 06:22:14 -0500
committerGitHub <noreply@github.com>2020-01-05 06:22:14 -0500
commit3cd4047f37425f914577e29b547470161a75c668 (patch)
treeae4aa1830e04365119bf3e808bda23141089efbf
parenteeac7d48d239c28eb6b6e5ea0c23c63fcdeb5304 (diff)
parentcb53d495596f293fd094ae010e1035bbaa49f87d (diff)
downloadnixlib-3cd4047f37425f914577e29b547470161a75c668.tar
nixlib-3cd4047f37425f914577e29b547470161a75c668.tar.gz
nixlib-3cd4047f37425f914577e29b547470161a75c668.tar.bz2
nixlib-3cd4047f37425f914577e29b547470161a75c668.tar.lz
nixlib-3cd4047f37425f914577e29b547470161a75c668.tar.xz
nixlib-3cd4047f37425f914577e29b547470161a75c668.tar.zst
nixlib-3cd4047f37425f914577e29b547470161a75c668.zip
Merge pull request #76964 from marsam/update-onefetch
onefetch: 2.1.0 -> 2.2.0
-rw-r--r--pkgs/tools/misc/onefetch/default.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/tools/misc/onefetch/default.nix b/pkgs/tools/misc/onefetch/default.nix
index be8c4fb9c064..e51a00dc7bd0 100644
--- a/pkgs/tools/misc/onefetch/default.nix
+++ b/pkgs/tools/misc/onefetch/default.nix
@@ -1,15 +1,15 @@
-{ fetchFromGitHub, rustPlatform, stdenv
+{ fetchFromGitHub, rustPlatform, stdenv, fetchpatch
 , CoreFoundation, libiconv, libresolv, Security }:
 
 rustPlatform.buildRustPackage rec {
   pname = "onefetch";
-  version = "2.1.0";
+  version = "2.2.0";
 
   src = fetchFromGitHub {
     owner = "o2sh";
     repo = pname;
     rev = "v${version}";
-    sha256 = "02mdzpzfcxp9na86b4jcqqjd3id5jslgmnq1jc0vykg58xha51jg";
+    sha256 = "1sgpai3gx3w7w3ilmbnmzgdxdim6klkfiqaqxmffpyap6qgksfqs";
   };
 
   cargoSha256 = "1phv06zf47bv5cmhypivljfiynrblha0kj13c5al9l0hd1xx749h";
@@ -17,6 +17,14 @@ rustPlatform.buildRustPackage rec {
   buildInputs = with stdenv;
     lib.optionals isDarwin [ CoreFoundation libiconv libresolv Security ];
 
+  cargoPatches = [
+    # fix wrong version in Cargo.lock
+    (fetchpatch {
+      url = "https://github.com/o2sh/onefetch/commit/b69fe660d72b65d7efac99ac5db3b03a82d8667f.patch";
+      sha256 = "14przkdyd4yd11xpdgyscs70w9gpnh02j3xdzxf6h895w3mn84lx";
+    })
+  ];
+
   meta = with stdenv.lib; {
     description = "Git repository summary on your terminal";
     homepage = "https://github.com/o2sh/onefetch";