overlays: add 'i3status-rust_0_22'
The latest version introduced breaking changes, let's do that correctly.
This commit is contained in:
parent
c3c2a34606
commit
704df6b826
|
@ -1,3 +1,5 @@
|
|||
{
|
||||
i3status-rust-main-program = import ./i3status-rust-main-program;
|
||||
|
||||
i3status-rust_0_22 = import ./i3status-rust_0_22;
|
||||
}
|
||||
|
|
21
overlays/i3status-rust_0_22/default.nix
Normal file
21
overlays/i3status-rust_0_22/default.nix
Normal 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=";
|
||||
});
|
||||
});
|
||||
}
|
Loading…
Reference in a new issue