streamlink: 7.1.1 -> 7.1.2 (#373269)
[NixPkgs.git] / pkgs / by-name / bu / bunbun / package.nix
blobe6e468db36ea9a04787dcf7d859044cdd96eca87
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   stdenv,
6   darwin,
7   versionCheckHook,
8   nix-update-script,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "bunbun";
13   version = "1.5.0";
15   src = fetchFromGitHub {
16     owner = "devraza";
17     repo = "bunbun";
18     tag = "v${version}";
19     hash = "sha256-3f/G0Vx1uXeH3QMDVUAHWi4Pf/B88/4F+4XywVsp3/4=";
20   };
22   cargoHash = "sha256-UEUK8GBkyzUv2J6uTjRdyoIiHVKLDYYj1aOnl+rgzmk=";
24   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
25     with darwin.apple_sdk.frameworks;
26     [
27       CoreFoundation
28       IOKit
29       SystemConfiguration
30     ]
31   );
33   nativeInstallCheckInputs = [
34     versionCheckHook
35   ];
36   versionCheckProgramArg = [ "--version" ];
37   doInstallCheck = true;
39   passthru = {
40     updateScript = nix-update-script { };
41   };
43   meta = {
44     description = "Simple and adorable sysinfo utility written in Rust";
45     homepage = "https://github.com/devraza/bunbun";
46     changelog = "https://github.com/devraza/bunbun/releases/tag/v${version}";
47     license = lib.licenses.mit;
48     maintainers = with lib.maintainers; [ GaetanLepage ];
49     mainProgram = "bunbun";
50   };