Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AndrewKvalheim/53a9bb0f9e63b30929f031b74816d52e to your computer and use it in GitHub Desktop.
Save AndrewKvalheim/53a9bb0f9e63b30929f031b74816d52e to your computer and use it in GitHub Desktop.
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