Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: eeac7d48d239
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3cd4047f3742
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Jan 4, 2020

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    cb53d49 View commit details

Commits on Jan 5, 2020

  1. Merge pull request #76964 from marsam/update-onefetch

    onefetch: 2.1.0 -> 2.2.0
    marsam authored Jan 5, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3cd4047 View commit details
Showing with 11 additions and 3 deletions.
  1. +11 −3 pkgs/tools/misc/onefetch/default.nix
14 changes: 11 additions & 3 deletions pkgs/tools/misc/onefetch/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
{ 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";

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";