Skip to content

Instantly share code, notes, and snippets.

@spikespaz
Created April 10, 2025 09:04
Show Gist options
  • Save spikespaz/be234524900e3dc45bf99cd0e6b78e79 to your computer and use it in GitHub Desktop.
Save spikespaz/be234524900e3dc45bf99cd0e6b78e79 to your computer and use it in GitHub Desktop.
# Overrides to keep packages building after Rust 1.80.0.
# There is a regression with type inference that primarily affects
# the `time` crate, so for packages that use it, go back one version.
# <https://github.com/NixOS/nixpkgs/issues/332957>
pkgs: pkgs0:
let
rustVersion = "1.79.0";
rustPlatform = pkgs.makeRustPlatform {
cargo = pkgs.rust-bin.stable.${rustVersion}.default;
rustc = pkgs.rust-bin.stable.${rustVersion}.default;
};
in builtins.listToAttrs (map (name: {
inherit name;
value = pkgs0.${name}.override { inherit rustPlatform; };
}) [ "deepfilternet" "rustdesk" "delta" "bandwhich" ])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment