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

Implement all ideas from NixOS/ofborg#245 #30

Open
13 tasks
davidak opened this issue Nov 8, 2019 · 2 comments
Open
13 tasks

Implement all ideas from NixOS/ofborg#245 #30

davidak opened this issue Nov 8, 2019 · 2 comments

Comments

@davidak
Copy link

davidak commented Nov 8, 2019

From NixOS/ofborg#245 (comment):

Here are some other occasions I repeatedly comment on:

  • When known build tool/setup hook is in buildInputs instead of nativeBuildInputs
    • cmake, ninja, meson, autoconf, automake, libtool, intltool, gettext, appstream-glib, gobject-introspection, wrapGAppsHook, wrapQtAppsHook…
  • When a patch is added to patches but no comment describing it is nearby.
  • When using improbable package variant (e.g. gtk3-x11 – here we could check if the source actually depends on this rather than gtk3)
  • When patch file is added to nixpkgs (suggest fetchpatch)
  • When fetching from git with rev=${commithash} but ${version} ≠ unstable-yyyy-mm-dd
  • When fetching from git with rev=refs/tags/${version} (replace with rev=${version})
  • When name="foo-${version}" is used. Suggest pname
  • When unquoted URLs are used ([RFC 0045] Deprecating unquoted URL syntax NixOS/rfcs#45, not nixpkgs specific)
  • When hardcoded phases like buildPhase or installPhase invoking make are used (suggest makeFlags)
  • When hardcoded phases are used but they lack runHook

For new packages:

  • Check that meta.maintainers is present
  • Check that meta.license is present
  • Check that meta.platforms is present
@Synthetica9
Copy link
Owner

These are all good ideas, but they are also mostly nixpkgs-specific. All of the currently specified checks are not specific to any Nix project, but general to any Nix project.

@abathur
Copy link

abathur commented Jan 15, 2020

The discourse thread is perhaps also very nixpkgs-specific, but wanted to leave a breadcumb trail that I mentioned this in https://discourse.nixos.org/t/avoiding-targets-of-past-treewide-fixes/5494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants