-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Diff: devraza/bunbun@refs/tags/v1.3.0...v1.4.0 Changelog: https://github.com/devraza/bunbun/releases/tag/v1.4.0
- Loading branch information
1 parent
c79da50
commit 31ab01f
Showing
1 changed file
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,48 @@ | ||
{ lib | ||
, rustPlatform | ||
, fetchFromGitHub | ||
, stdenv | ||
, darwin | ||
{ | ||
lib, | ||
rustPlatform, | ||
fetchFromGitHub, | ||
stdenv, | ||
darwin, | ||
nix-update-script, | ||
testers, | ||
bunbun, | ||
}: | ||
|
||
rustPlatform.buildRustPackage rec { | ||
pname = "bunbun"; | ||
version = "1.3.0"; | ||
version = "1.4.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "devraza"; | ||
repo = "bunbun"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-jqokKvJYu/xHJHJVuNlTns3cYPLx1osbRUrCpVTCJZ0="; | ||
# TODO: remove '-bump' at next release | ||
rev = "refs/tags/v${version}-bump"; | ||
hash = "sha256-r4xBUfNY+Q3uAC919ZQbIDgiF981FVqZCOT8XNojZP4="; | ||
}; | ||
|
||
cargoHash = "sha256-dWZ5aNaHyTkEmkn88Dx5nCnGyiBmpJ6p5iYC7xj/mBw="; | ||
cargoHash = "sha256-CcGfaSyCMv0Wm4QsYASBwEnpX8fKbLHRqyEcUmj2w2o="; | ||
|
||
buildInputs = lib.optionals stdenv.isDarwin [ | ||
darwin.apple_sdk.frameworks.CoreFoundation | ||
darwin.apple_sdk.frameworks.IOKit | ||
darwin.apple_sdk.frameworks.SystemConfiguration | ||
]; | ||
buildInputs = lib.optionals stdenv.isDarwin ( | ||
with darwin.apple_sdk.frameworks; | ||
[ | ||
CoreFoundation | ||
IOKit | ||
SystemConfiguration | ||
] | ||
); | ||
|
||
meta = with lib; { | ||
passthru = { | ||
updateScript = nix-update-script { }; | ||
tests.version = testers.testVersion { package = bunbun; }; | ||
}; | ||
|
||
meta = { | ||
description = "Simple and adorable sysinfo utility written in Rust"; | ||
homepage = "https://github.com/devraza/bunbun"; | ||
changelog = "https://github.com/devraza/bunbun/releases/tag/v${version}"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ GaetanLepage ]; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ GaetanLepage ]; | ||
mainProgram = "bunbun"; | ||
}; | ||
} |