Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

teams-for-linux: 1.0.53 → 1.0.59, add updateScript #222440

Merged

Conversation

lilyinstarlight
Copy link
Member

@lilyinstarlight lilyinstarlight commented Mar 21, 2023

Description of changes

Add update script (based on existing one I use for sonic-pi, which is in a similar situation with a FOD that isn't directly supported by nix-update right now) and bump version

The only changes in the 1.0.53 -> 1.0.56 bump is supporting a custom app title (which didn't come with release notes it seems...), a command line flag to disable the notification sound (notes), and several bug fixes (notes)

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot requested a review from muscaln March 22, 2023 00:14
@lilyinstarlight lilyinstarlight changed the title teams-for-linux: 1.0.53 → 1.0.54, add updateScript teams-for-linux: 1.0.53 → 1.0.55, add updateScript Mar 22, 2023
@lilyinstarlight lilyinstarlight changed the title teams-for-linux: 1.0.53 → 1.0.55, add updateScript teams-for-linux: 1.0.53 → 1.0.56, add updateScript Mar 26, 2023
@Alizter
Copy link
Contributor

Alizter commented Mar 26, 2023

Result of nixpkgs-review pr 222440 run on x86_64-linux 1

1 package built:
  • teams-for-linux

@lilyinstarlight lilyinstarlight changed the title teams-for-linux: 1.0.53 → 1.0.56, add updateScript teams-for-linux: 1.0.53 → 1.0.57, add updateScript Mar 30, 2023
@lilyinstarlight lilyinstarlight changed the title teams-for-linux: 1.0.53 → 1.0.57, add updateScript teams-for-linux: 1.0.53 → 1.0.59, add updateScript Apr 12, 2023
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/2068

Comment on lines +16 to +18
vendorhash() {
(nix --extra-experimental-features nix-command build --impure --argstr nixpkgs "$nixpkgs" --argstr attr "$1" --expr '{ nixpkgs, attr }: let pkgs = import nixpkgs {}; in with pkgs.lib; (getAttrFromPath (splitString "." attr) pkgs).overrideAttrs (attrs: { outputHash = fakeHash; })' --no-link 2>&1 >/dev/null | tail -n3 | grep -F got: | cut -d: -f2- | stripwhitespace) 2>/dev/null || true
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should get this into nix-update if not already done

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this one's a bit of a special one since it's not using any standard Yarn builder atm and we would have to just tell it that a package having .offlineCache means Yarn (which is a reasonably strong convention but isn't 100% consistent for packages like this since it's not a standard builder)

Once we have buildYarnPackage though (#210814) we'll add support for it and yarnDeps in nix-update

Comment on lines +20 to +29
findpath() {
path="$(nix --extra-experimental-features nix-command eval --json --impure -f "$nixpkgs" "$1.meta.position" | jq -r . | cut -d: -f1)"
outpath="$(nix --extra-experimental-features nix-command eval --json --impure --expr "builtins.fetchGit \"$nixpkgs\"")"

if [ -n "$outpath" ]; then
path="${path/$(echo "$outpath" | jq -r .)/$nixpkgs}"
fi

echo "$path"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh this can just be hardcoded

@SuperSandro2000 SuperSandro2000 merged commit 46d9724 into NixOS:master Apr 12, 2023
@lilyinstarlight lilyinstarlight deleted the upd/teams-for-linux-1.0.54 branch April 12, 2023 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants