nixos-rebuild: Fix ShellCheck issue
[NixPkgs.git] / pkgs / tools / misc / owofetch / default.nix
blob20d9cc160d7a72d540430ccbe41ceeeaaf597ef1
1 { lib
2 , stdenvNoCC
3 , rustPlatform
4 , fetchFromGitHub
5 , Foundation
6 , DiskArbitration
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "owofetch";
12   version = "0.3.1";
14   src = fetchFromGitHub {
15     owner = "netthier";
16     repo = "owofetch-rs";
17     rev = "v${version}";
18     sha256 = "sha256-I8mzOUvm72KLLBumpgn9gNyx9FKvUrB4ze1iM1+OA18=";
19   };
21   cargoHash = "sha256-rfN4QERs1H1G7ZZim//78vlxbYfU4Cx7SYYUz/QLKeU=";
23   buildInputs = lib.optionals stdenvNoCC.hostPlatform.isDarwin [
24     Foundation
25     DiskArbitration
26   ];
28   meta = with lib; {
29     description = "Alternative to *fetch, uwuifies all stats";
30     homepage = "https://github.com/netthier/owofetch-rs";
31     license = licenses.gpl3Only;
32     platforms = platforms.x86_64;
33     maintainers = with maintainers; [ nullishamy ];
34     mainProgram = "owofetch";
35   };