overlays: add 'i3status-rust_0_22'

The latest version introduced breaking changes, let's do that correctly.
This commit is contained in:
Bruno BELANYI 2023-03-19 21:52:56 +00:00
parent c3c2a34606
commit 704df6b826
2 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,5 @@
{ {
i3status-rust-main-program = import ./i3status-rust-main-program; i3status-rust-main-program = import ./i3status-rust-main-program;
i3status-rust_0_22 = import ./i3status-rust_0_22;
} }

View file

@ -0,0 +1,21 @@
final: prev:
{
i3status-rust_0_22 = final.i3status-rust.overrideAttrs (oa: rec {
name = "i3status-rust-${version}";
version = "0.22.0";
src = final.fetchFromGitHub {
owner = "greshake";
repo = "i3status";
rev = "refs/tags/v${version}";
hash = "sha256-9Fp5k14QkV1CwLSL1nUUu6NYIpjfvI9vNJRYNqvyr3M=";
};
# overrideAttrs with buildRustPackage is stupid
cargoDeps = oa.cargoDeps.overrideAttrs (_: {
name = "${name}-vendor.tar.gz";
inherit src;
outputHash = "sha256-MzosatZ4yPHAdANqOBPVW2wpjnojLo9B9N9o4DtU0Iw=";
});
});
}