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

weechatScripts.colorize_nicks: init at 27 #105633

Merged
merged 1 commit into from Dec 11, 2020

Conversation

alyssais
Copy link
Member

@alyssais alyssais commented Dec 2, 2020

Motivation for this change
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.

@@ -0,0 +1,30 @@
{ stdenv, lib, fetchurl }:
Copy link
Member

Choose a reason for hiding this comment

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

lib can be replaced with stdenv.lib.

Copy link
Member

Choose a reason for hiding this comment

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

I don't feel like indirections like this are the way to go.

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
{ stdenv, lib, fetchurl }:
{ pkgs }:

Then we can use pkgs.stdenv, pkgs.lib, pkgs.fetchurl?
</kidding>

More to the point. Do we have any guidelines as to what to prefer here? I think I prefer the solution present in the PR.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Dec 2, 2020

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

1 package marked as broken and skipped:
  • weechatScripts.colorize_nicks
error: attribute 'colorize_nicks' in selection path 'weechatScripts.colorize_nicks' not found

@alyssais
Copy link
Member Author

alyssais commented Dec 9, 2020

I couldn’t reproduce the evaluation error. nix-build -A weechatScripts.colorize_nicks works fine.

meta = with lib; {
inherit (weechat.meta) platforms;
description = "Use the weechat nick colors in the chat area";
licenses = licenses.gpl2Plus;
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
licenses = licenses.gpl2Plus;
license = licenses.gpl2Plus;

@mweinelt
Copy link
Member

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

1 package built:
  • weechatScripts.colorize_nicks

@mweinelt mweinelt merged commit 7fdefbe into NixOS:master Dec 11, 2020
@alyssais alyssais deleted the colorize_nicks branch April 9, 2021 21:07
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.

None yet

4 participants