blob: 8940c43de946ee89c5d62d77e42449b1b0b24476 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ stdenv, rustPlatform, rust, fetchFromGitHub, pkgconfig, dbus, libpulseaudio }:
let
metadata = import ./metadata.nix;
in
rustPlatform.buildRustPackage rec {
name = "i3status-rust-${version}";
version = metadata.rev;
src = fetchFromGitHub {
owner = "greshake";
repo = "i3status-rust";
rev = metadata.rev;
sha256 = metadata.sha256;
};
cargoSha256 = metadata.cargoSha256;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dbus libpulseaudio ];
preCheck = ''
substituteInPlace tests/run_binary.rs \
--replace 'target/release' "target/${rust.toRustTarget stdenv.buildPlatform}/release"
'';
meta = with stdenv.lib; {
description = "Very resource-friendly and feature-rich replacement for i3status";
homepage = https://github.com/greshake/i3status-rust;
license = licenses.gpl3;
maintainers = [ maintainers.backuitist ];
platforms = platforms.linux;
};
}
|