Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use unstable package until target version
_: pkgs:
let
unstable = import <unstable> { overlays = [ ]; };
overrideUntilVersion = p: v: (if pkgs ? ${p} && pkgs.lib.versionAtLeast pkgs.${p}.version v then pkgs else unstable).${p};
in
builtins.mapAttrs overrideUntilVersion {
aws-sam-cli = "1.52.0";
darktable = "4.0.0";
efficient-compression-tool = "0.9.1";
kitty = "0.25.2";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment