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

gama: init at 2.09 #93406

Merged
merged 1 commit into from Jul 19, 2020
Merged

gama: init at 2.09 #93406

merged 1 commit into from Jul 19, 2020

Conversation

lsix
Copy link
Member

@lsix lsix commented Jul 18, 2020

Motivation for this change

Add GNU gama to nixpkgs.

See https://www.gnu/.org/software/gama/ for description

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.

@typetetris
Copy link
Contributor

Result of nixpkgs-review pr 93406 1

1 package built:
- gama

@typetetris
Copy link
Contributor

  • package path fits guidelines
  • package name fits guidelines
  • package version fits guidelines
  • package build on linux x86_64
  • executables tested on linux x86_64
  • meta.description is set and fits guidelines
  • meta.license fits upstream license
  • meta.homepage is set and fits
  • meta.platforms is set
  • meta.maintainers is set
  • build time only dependencies are declared in nativeBuildInputs
  • source is fetched using the appropriate function
  • phases are respected

@typetetris
Copy link
Contributor

Maybe set meta.platforms = stdenv.lib.platforms.all or some such?

@typetetris
Copy link
Contributor

checkInputs is automatically included in nativeBuildInputs if doCheck = true. So maybe thats unnecessary listed twice?

@lsix
Copy link
Member Author

lsix commented Jul 18, 2020

checkInputs is automatically included in nativeBuildInputs if doCheck = true. So maybe thats unnecessary listed twice?

Yes it could, but I got those separated so it is clear that octave and libxml2 are only used when running tests. Merging both would work flawlessly but I am not sure it will improve maintainability.

@typetetris
Copy link
Contributor

typetetris commented Jul 18, 2020

I suggest to remove them from nativeBuildInputs. And just keep them in checkInputs.

@lsix
Copy link
Member Author

lsix commented Jul 18, 2020

oh, actually I just realized that octave and libxml2 are present in both. All my excuses for that, they are only meant to be in checkInputs. Your interrogations makes more sense to me now 😓

@typetetris
Copy link
Contributor

I didn't measure it, but you should only set doCheck = true in the default.nix when the build time of the test isn't a lot.

Copy link
Contributor

@typetetris typetetris left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

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

LGTM

Result of nixpkgs-review pr 93406 1

1 package built:
- gama

@danieldk danieldk merged commit dee4bef into NixOS:master Jul 19, 2020
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

3 participants