!lZLfSUtSOVjwYTmPbU:nixos.org

nixpkgs-update

175 Members
Keeping nixpkgs up to date. r-ryantm bot. https://github.com/ryantm/nixpkgs-update and https://github.com/nix-community/infra/blob/master/build02/nixpkgs-update.nix56 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
4 Sep 2022
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".01:07:49
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".01:07:49
@grahamc:nixos.org@grahamc:nixos.org invited @ryantm:matrix.orgryantm.01:08:10
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.01:08:23
@grahamc:nixos.org@grahamc:nixos.org invited @mjolnir:nixos.orgNixOS Moderation Bot.01:11:41
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.01:11:42
Room Avatar Renderer.01:11:45
@ryantm:matrix.orgryantm joined the room.01:15:23
@mjolnir:nixos.orgNixOS Moderation Bot joined the room.01:20:00
@ryantm:matrix.orgryantm set the room topic to "Keeping nixpkgs up to date. r-ryantm bot. https://github.com/ryantm/nixpkgs-update and https://github.com/nix-community/infra/blob/master/build02/nixpkgs-update.nix".03:05:41
Room Avatar Renderer.03:06:44
@qyliss:fairydust.spaceAlyssa Ross joined the room.08:23:05
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.org joined the room.13:49:22
@hexa:lossy.networkhexa joined the room.14:43:01
@sandro:supersandro.deSandro 🐧 joined the room.15:01:23
@0x4a6f:matrix.org[0x4A6F] joined the room.19:25:34
5 Sep 2022
@artturin:matrix.orgArtturin joined the room.09:54:17
@mon:tchncs.deribosomerocker joined the room.11:42:14
@teutat3s:pub.solar@teutat3s:pub.solar joined the room.15:40:55
6 Sep 2022
@j-k:matrix.orgj-k joined the room.12:18:22
7 Sep 2022
@j-k:matrix.orgj-kOne thing I've been thinking about for a while is nix-update is nice but having fully automated process for multiple packages is super useful. Either making nixpkgs-update easier to run or another idea was adding nix update features to renovatebot which is already quite widely used https://github.com/renovatebot/renovate/issues/800012:41:43
@sandro:supersandro.deSandro 🐧we do not want multiple people to run nixpkgs-update13:01:35
@sandro:supersandro.deSandro 🐧
nix-update-auto() {
  local args base_branch=master branch current_branch package package_name=() version versions
  package="${*: -1}"
  case $package in
    python:*)
      IFS=" " read -r -a package_name <<<"${package//:/ }"
      package="python310Packages.${package_name[1]}"
      set -- "${@:1:$#-1}" "$package"
      ;;
    *) ;;

  esac \
    ;
  args=($(getopt --unquoted --options "hf:v:r:" --long "help,build,test,commit,version-regex:,run:,shell:,version:" -- "$@"))
  (
    set -e
    for branch in master staging-next staging; do
      versions+="$(nix eval --raw ".?ref=$branch#$package.version")\n"
    done
    if ! [[ $(echo -e "$versions" | sort -u | wc -l) != 1 ]]; then
      echo "Package has different versions on master and different staging branches. Please check manually."
      nix versions "$package"
      read -r -n 1 -p "Continue? [any/Ctrl-C]"
      echo
    fi
    current_branch="$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)"
    if [[ $current_branch != "${args[*]: -1}" && $current_branch != python-updates ]]; then
      if [[ ${*: -1} =~ (libva|python.*Packages.(asgiref|attrs|babel|certifi|cryptography|cython|ddt|httpbin|hypothesis|jsonschema|libcst|lxml|paramiko|pbr|pillow|pycares|pygments|pylint|requests|typed-ast|types-typed-ast|urllib3|xmltodict|zipp)|rust-cbindgen) ]]; then
        echo "Targeting staging..."
        base_branch="$(git merge-base upstream/master upstream/staging)"
        export GIT_NEXT_PUSH_TARGET_BRANCH="$base_branch"
      fi
      git checkout -b "${args[@]: -1}" "$base_branch"
    fi
    nix-update --build --commit "${args[@]}"
    if [[ $current_branch != python-updates ]]; then
      git push
    fi
  )
}
13:01:40
@hexa:lossy.networkhexapretty sure the idea was to make it reusable on other repos that nixpkgs as well13:02:25
11 Sep 2022
@hexa:lossy.networkhexa * pretty sure the idea was to make it reusable on other repos than nixpkgs as well02:15:34
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.org changed their profile picture.21:27:03
15 Sep 2022
@m_algery:leohoo.xyz@m_algery:leohoo.xyz joined the room.12:53:09
@m_algery:leohoo.xyz@m_algery:leohoo.xyz left the room.12:53:10
17 Sep 2022
@anderson_torres:matrix.org@anderson_torres:matrix.org joined the room.11:36:06

Show newer messages


Back to Room ListRoom Version: 9