diff options
author | Oleksii Filonenko <brightone@protonmail.com> | 2019-11-25 22:06:35 +0200 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2019-11-27 10:14:26 -0800 |
commit | fb00dacecc1549eaabc707e44d6979567859de2a (patch) | |
tree | c5e141ccaf341d5dda8c71dd91b7a244065da786 /pkgs/tools/misc/onefetch | |
parent | f0b5b247d90a0f317ebca8096013eb9ddf530261 (diff) |
onefetch: init at 2.1.0
Co-authored-by: Kloenk <Kloenk@users.noreply.github.com>
Diffstat (limited to 'pkgs/tools/misc/onefetch')
-rw-r--r-- | pkgs/tools/misc/onefetch/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/misc/onefetch/default.nix b/pkgs/tools/misc/onefetch/default.nix new file mode 100644 index 0000000000000..be8c4fb9c0646 --- /dev/null +++ b/pkgs/tools/misc/onefetch/default.nix @@ -0,0 +1,26 @@ +{ fetchFromGitHub, rustPlatform, stdenv +, CoreFoundation, libiconv, libresolv, Security }: + +rustPlatform.buildRustPackage rec { + pname = "onefetch"; + version = "2.1.0"; + + src = fetchFromGitHub { + owner = "o2sh"; + repo = pname; + rev = "v${version}"; + sha256 = "02mdzpzfcxp9na86b4jcqqjd3id5jslgmnq1jc0vykg58xha51jg"; + }; + + cargoSha256 = "1phv06zf47bv5cmhypivljfiynrblha0kj13c5al9l0hd1xx749h"; + + buildInputs = with stdenv; + lib.optionals isDarwin [ CoreFoundation libiconv libresolv Security ]; + + meta = with stdenv.lib; { + description = "Git repository summary on your terminal"; + homepage = "https://github.com/o2sh/onefetch"; + license = licenses.mit; + maintainers = with maintainers; [ filalex77 ]; + }; +} |