2020-01-04 19:00:00 +00:00
|
|
|
{ fetchFromGitHub, rustPlatform, stdenv, fetchpatch
|
2019-11-25 20:06:35 +00:00
|
|
|
, CoreFoundation, libiconv, libresolv, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "onefetch";
|
2020-01-04 19:00:00 +00:00
|
|
|
version = "2.2.0";
|
2019-11-25 20:06:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "o2sh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-01-04 19:00:00 +00:00
|
|
|
sha256 = "1sgpai3gx3w7w3ilmbnmzgdxdim6klkfiqaqxmffpyap6qgksfqs";
|
2019-11-25 20:06:35 +00:00
|
|
|
};
|
|
|
|
|
2020-03-09 02:10:27 +00:00
|
|
|
cargoSha256 = "18z887mklynxpjci6va4i5zhg90j824avykym24vbz9w97nqpdd5";
|
2019-11-25 20:06:35 +00:00
|
|
|
|
|
|
|
buildInputs = with stdenv;
|
|
|
|
lib.optionals isDarwin [ CoreFoundation libiconv libresolv Security ];
|
|
|
|
|
2020-01-04 19:00:00 +00:00
|
|
|
cargoPatches = [
|
|
|
|
# fix wrong version in Cargo.lock
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/o2sh/onefetch/commit/b69fe660d72b65d7efac99ac5db3b03a82d8667f.patch";
|
|
|
|
sha256 = "14przkdyd4yd11xpdgyscs70w9gpnh02j3xdzxf6h895w3mn84lx";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-11-25 20:06:35 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Git repository summary on your terminal";
|
|
|
|
homepage = "https://github.com/o2sh/onefetch";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
|
|
|
};
|
|
|
|
}
|