overlays/nix: use override instead of overrideAttrs

This commit is contained in:
LavaDesu 2022-01-09 12:53:48 +07:00
parent 3fb3e60768
commit 87bac04297
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -1,13 +1,13 @@
# TODO: remove after upstream fixes https://github.com/NixOS/nix/issues/5728
self: super: {
nixUnstable = super.nixUnstable.overrideAttrs(_: rec {
nixUnstable = super.nixUnstable.override rec {
version = "2.5${suffix}";
suffix = "pre20211007_${self.lib.substring 0 7 src.rev}";
src = self.fetchFromGitHub {
suffix = "pre20211007_${super.lib.substring 0 7 src.rev}";
src = super.fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "844dd901a7debe8b03ec93a7f717b6c4038dc572";
sha256 = "sha256-fe1B4lXkS6/UfpO0rJHwLC06zhOPrdSh4s9PmQ1JgPo=";
};
});
};
}