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

wezterm: initial package #104704

Merged
merged 2 commits into from Dec 15, 2020
Merged

wezterm: initial package #104704

merged 2 commits into from Dec 15, 2020

Conversation

steveej
Copy link
Contributor

@steveej steveej commented Nov 23, 2020

Motivation for this change

Closes #90696.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@SuperSandro2000
Copy link
Member

Please change your commit message that it fits the contributing guide https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#submitting-changes

pkgs/applications/terminal-emulators/wezterm/default.nix Outdated Show resolved Hide resolved
pkgs/applications/terminal-emulators/wezterm/default.nix Outdated Show resolved Hide resolved
pkgs/applications/terminal-emulators/wezterm/default.nix Outdated Show resolved Hide resolved
owner = "wez";
repo = pname;
rev = "${version}";
fetchSubmodules = true;
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer it if we would use the system libraries instead of the vendored ones.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Assuming that your goal is to remove this line entirely I think this isn't easily possible. The submodule paths are referenced unconditionally, e.g. here:

https://github.com/wez/wezterm/blob/5fbb6a44002c170dcd20bbc0b0fd38f6fbf6b206/wezterm-font/Cargo.toml#L15

pkgs/applications/terminal-emulators/wezterm/default.nix Outdated Show resolved Hide resolved
Comment on lines 83 to 84
# license = licenses.angle;
maintainers = with maintainers; [ ];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# license = licenses.angle;
maintainers = with maintainers; [ ];
license = licenses.angle;
maintainers = with maintainers; [ steveeJ ];

Please add the license to nixpkgs and yourself as a maintainer.

Copy link

Choose a reason for hiding this comment

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

the license is MIT. There are some compiled in fonts that are OFL. Binary distributions on Windows and macOS include code (libEGL) under the ANGLE license.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this mean we need multiple licenses here, or is MIT fine?

Copy link
Member

Choose a reason for hiding this comment

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

I would just add all three licenses but I am not 100% sure.

buildInputs = runtimeDeps;

installPhase = ''
for artifact in wezterm wezterm-gui wezterm-mux-server strip-ansi-escapes; do
Copy link

Choose a reason for hiding this comment

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

I don't know how/if all these translate to nixos, but if you look at the rpm spec generation here:

https://github.com/wez/wezterm/blob/master/ci/deploy.sh#L84-L106

there are a couple of additional artifacts to deploy for linux:

  • The .desktop file and icon
  • The /etc/profile.d shell integration scripts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @wez. I added the install instructions although I'm not sure how to verify any of them. Maybe someone else jumps in or we can fix it up subsequently.

Comment on lines 83 to 84
# license = licenses.angle;
maintainers = with maintainers; [ ];
Copy link

Choose a reason for hiding this comment

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

the license is MIT. There are some compiled in fonts that are OFL. Binary distributions on Windows and macOS include code (libEGL) under the ANGLE license.

pkgs/applications/terminal-emulators/wezterm/default.nix Outdated Show resolved Hide resolved
@SuperSandro2000
Copy link
Member

hash mismatch in fixed-output derivation '/nix/store/6l6ngbzzmn0pb2zili1bd0ras6hjwc17-wezterm-3bd8d8c84591f4d015ff9a47ddb478e55c231fda-vendor.tar.gz':
  wanted: sha256:0ri79aiipy93dabiwp1jgsy1pgwrdr38n6wrp5j568m7cqbdrmwn
  got:    sha256:1s1pr7dygizhgsblwrizij10dx2hg8jl32gf8ygdq2x69bvzldmk
cannot build derivation '/nix/store/ly065byvlja9r88c91y1xqcq69kz8y9c-wezterm-3bd8d8c84591f4d015ff9a47ddb478e55c231fda.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/zs36n38l4n0spzr4mm7s5an60103m8lq-env.drv': 1 dependencies couldn't be built

@bew
Copy link
Contributor

bew commented Nov 25, 2020

Hello, @steveej can you please not use force push when changing your PR?
It makes it quite hard to see what changed between 2 update of the PR.

By making multiple commits it allows us, reader of the PR to see what changes you did on each update.
The final commit will probably be squashed anyway to be a single commit at the end in master.

@steveej
Copy link
Contributor Author

steveej commented Nov 25, 2020

@bew I'm quite surprised about that request. I typically use git commit --fixup ..; If those commits are good enough for you I'll try to think of not squashing until right before merge.

@SuperSandro2000
Copy link
Member

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

1 package built:
  • wezterm

@teto
Copy link
Member

teto commented Nov 26, 2020

@steveej I apprecaite when commits stack on top of eachother because then we only have to inspect the more recent commits. we can squash from github ui at the end. Tested locally and it worked fine.

@teto teto merged commit b75e7f4 into NixOS:master Dec 15, 2020
@steveej
Copy link
Contributor Author

steveej commented Dec 15, 2020

@teto

we can squash from github ui at the end

Ah, I totally wanted to squash as I wasn't very comfortable not cleaning up the git history in the first place; but now you just merged! Also, I was preparing some changes locally still today that I hadn't pushed. Well, I'll create another PR to add them.

@teto
Copy link
Member

teto commented Dec 15, 2020

sorry my fault. I had planned to squash them as my previous comment mentioned but clicked a bit too fast. It was only one fixup! commit so not taht bad.

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.

package request: wezterm
7 participants