mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 15:15:36 +00:00
onefetch: 2.1.0 -> 2.2.0
Changelog: https://github.com/o2sh/onefetch/releases/tag/v2.2.0
This commit is contained in:
parent
8440abe7e6
commit
cb53d49559
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue