Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / bu / bunbun / package.nix
blobe9de0cc5e29537301a4f71bbf642fe3d68ba8ce0
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , darwin
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "bunbun";
10   version = "1.3.0";
12   src = fetchFromGitHub {
13     owner = "devraza";
14     repo = "bunbun";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-jqokKvJYu/xHJHJVuNlTns3cYPLx1osbRUrCpVTCJZ0=";
17   };
19   cargoHash = "sha256-dWZ5aNaHyTkEmkn88Dx5nCnGyiBmpJ6p5iYC7xj/mBw=";
21   buildInputs = lib.optionals stdenv.isDarwin [
22     darwin.apple_sdk.frameworks.CoreFoundation
23     darwin.apple_sdk.frameworks.IOKit
24     darwin.apple_sdk.frameworks.SystemConfiguration
25   ];
27   meta = with lib; {
28     description = "Simple and adorable sysinfo utility written in Rust";
29     homepage = "https://github.com/devraza/bunbun";
30     changelog = "https://github.com/devraza/bunbun/releases/tag/v${version}";
31     license = licenses.mit;
32     maintainers = with maintainers; [ GaetanLepage ];
33     mainProgram = "bunbun";
34   };