85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, makeWrapper
|
|
, dbus
|
|
, libpulseaudio
|
|
, notmuch
|
|
, openssl
|
|
, ethtool
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "i3status-rust";
|
|
version = "0.14.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greshake";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1ndqh4bzwim32n8psgsgdd47xmlb45rhvcwla1wm506byb21nk4c";
|
|
};
|
|
|
|
cargoSha256 = "1kwd76i4lbpxdvan5nzl7dhslh45cipnsdgvssdqd9k34hap05p5";
|
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper ];
|
|
|
|
buildInputs = [ dbus libpulseaudio notmuch openssl ];
|
|
|
|
cargoBuildFlags = [
|
|
"--features=notmuch"
|
|
];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/i3status-rs --prefix PATH : "${ethtool}/bin"
|
|
'';
|
|
|
|
# Currently no tests are implemented, so we avoid building the package twice
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Very resource-friendly and feature-rich replacement for i3status";
|
|
homepage = "https://github.com/greshake/i3status-rust";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ backuitist globin ma27 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|