mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
d14e627987
* git-chglog: 0.9.1 -> 0.14.2 * added homepage and using buildFlagsArray instead buildPhase * battop: init a version v0.2.4 battop is an interactive viewer, similar to top, htop and other *top utilities, but about the batteries installed in your notebook. * fix name in mantainers list * some fixes - remove unused imports - formatting - remove defaults options - enable checks * short description
26 lines
678 B
Nix
26 lines
678 B
Nix
{ lib, fetchFromGitHub, rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "battop";
|
|
version = "0.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "svartalf";
|
|
repo = "rust-battop";
|
|
rev = "v${version}";
|
|
sha256 = "0p53jl3r2p1w9m2fvhzzrj8d9gwpzs22df5sbm7wwja4pxn7ay1w";
|
|
};
|
|
|
|
# https://github.com/svartalf/rust-battop/issues/11
|
|
cargoPatches = [ ./battery.patch ];
|
|
|
|
cargoSha256 = "0ipmnrn6lmf6rqzsqmaxzy9lblrxyrxzkji968356nxxmwzfbfvh";
|
|
|
|
meta = with lib; {
|
|
description = "is an interactive battery viewer";
|
|
homepage = "https://github.com/svartalf/rust-battop";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ hdhog ];
|
|
};
|
|
}
|