overlays: add overlay for i3status-rust

This commit is contained in:
Antoine Martin 2022-01-11 17:59:01 +01:00
parent 912073bee6
commit 0c25fa3f83
3 changed files with 25 additions and 1 deletions

View file

@ -60,6 +60,8 @@
};
};
overlays = import ./overlays;
nixosConfigurations =
let
system = "x86_64-linux";
@ -73,7 +75,7 @@
config.allowUnfree = true;
};
})
];
] ++ builtins.attrValues self.overlays;
sharedModules = [
home-manager.nixosModule
{ nixpkgs.overlays = shared_overlays; }

3
overlays/default.nix Normal file
View file

@ -0,0 +1,3 @@
{
i3status-rust = import ./i3status-rust;
}

View file

@ -0,0 +1,19 @@
final: prev:
{
# overlay created because nixpkgs's `i3status-rust` depended on `notmuch`, and
# `notmuch`'s tests were briefly broken. the features I'm disabling, I don't
# need anyway: (at the time of writing)
#
# - notmuch
# - maildir
i3status-rust = prev.i3status-rust.overrideAttrs (oldAttrs: {
buildInputs = builtins.attrValues {
inherit (final)
dbus
openssl
pulseaudio
;
};
cargoBuildFeatures = [ "pulseaudio" ];
});
}