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

mingtest: init at 0.1.9 #327902

Merged
merged 2 commits into from
Aug 29, 2024
Merged

mingtest: init at 0.1.9 #327902

merged 2 commits into from
Aug 29, 2024

Conversation

lutzberger
Copy link
Contributor

Description of changes

https://github.com/craflin/mingtest

Things done

add mingtest in nix-expression in pkgs/development/libraries

  • Built on platform(s)
    • [ x] x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 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.

Add a 👍 reaction to pull requests you find important.

@NixOSInfra NixOSInfra added the 12. first-time contribution This PR is the author's first one; please be gentle! label Jul 17, 2024
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Jul 17, 2024
@jackyliu16
Copy link
Contributor

jackyliu16 commented Jul 18, 2024

AFAICT, this file is still not formatted according to the style specified by Nix RFC 166, which is a style that all .nix files in Nixpkgs must adhere to.

To ensure that the Nix expression in this file follows the Nix RFC 116, please format it with pkgs.nixfmt-rfc-style:
$ nix run .#nixfmt-rfc-style -- pkgs/<your file>
Or if you do not use flakes,
$ NIX_PATH="nixpkgs=$PWD" nix-shell -p nixfmt-rfc-style --run "nixfmt pkgs/<your file>"

pkgs/by-name/mi/mingtest/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/mi/mingtest/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/mi/mingtest/package.nix Outdated Show resolved Hide resolved
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 10.rebuild-linux: 1-10 10.rebuild-linux: 1 and removed 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Jul 18, 2024
Copy link
Member

@Aleksanaa Aleksanaa left a comment

Choose a reason for hiding this comment

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

It appears to be a dynamic link library that can be used by gtest, but it contains the gtest header itself. Maybe we should use the gtest header in nixpkgs instead, so that it works with our gtest.

pkgs/by-name/mi/mingtest/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/mi/mingtest/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/mi/mingtest/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/mi/mingtest/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/mi/mingtest/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/mi/mingtest/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/mi/mingtest/package.nix Show resolved Hide resolved
@jackyliu16
Copy link
Contributor

BTW, You may want to squash those commit update the version into one (and remove you update rev operation)
Nixpkgs normally follow a specify release(if release existed), rather than a commit.

@lutzberger lutzberger closed this Jul 22, 2024
@lutzberger lutzberger reopened this Jul 22, 2024
@lutzberger
Copy link
Contributor Author

BTW, You may want to squash those commit update the version into one (and remove you update rev operation) Nixpkgs normally follow a specify release(if release existed), rather than a commit.

How to do it? With "git rebase -i" and than "push -f"?

@jackyliu16
Copy link
Contributor

jackyliu16 commented Jul 22, 2024

BTW, You may want to squash those commit update the version into one (and remove you update rev operation) Nixpkgs normally follow a specify release(if release existed), rather than a commit.

How to do it? With "git rebase -i" and than "push -f"?

normally, we recommand to do following operation, but I couldn't guarantee results, please backup all of your file and do it.

  1. add a new commit to fixup incorrect version (-4),I not sure if done it.
  2. using git log to find the previous commit before your commit.
  3. use git bash -i to go into the rebase CLI.
  4. base on the note to change the first words from pick to others ( for the commit you want to operate ) [ which right now should only contains two commit, one for add maintainers and one for add packages.
    (squash commit will merge two commit into one)
  5. before you makesure everything is correct use git push --force to repush your current branch into here.

@lutzberger
Copy link
Contributor Author

Why this pull request is still not merged? Is still something missing?

@eclairevoyant
Copy link
Contributor

eclairevoyant commented Aug 22, 2024

Well it doesn't eval, that's certainly one reason.
You'll have to add yourself as a maintainer, separately, in the first commit (maintainers: add lutzberger), to the full maintainers list.

Also, the contents of the commits don't really match the messages, anything touching the mingtest package should be in the mingtest init commit.

If you need a reference, you can look at other merged, init PRs from first-time contributors: https://github.com/NixOS/nixpkgs/issues?q=label%3A%2212.+first-time+contribution%22+is%3Amerged+in%3Atitle+init

Copy link
Contributor

@eclairevoyant eclairevoyant left a comment

Choose a reason for hiding this comment

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

Also, Aleksanaa's comment wasn't addressed yet; please correct accordingly.

@github-actions github-actions bot added 6.topic: python 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels Aug 23, 2024
@lutzberger
Copy link
Contributor Author

Through rebasing I got now 4 commits into this fork, but it should only be 2. I have not changed anything in the fist 2 commits from other people. I don't know now how to remove that 2 commits from my fork, without removing from git?

@lutzberger
Copy link
Contributor Author

Found the first 2 commits as duplicate. Could remove them with git rebase.

@ofborg ofborg bot added the 11.by: package-maintainer This PR was created by the maintainer of the package it changes label Aug 23, 2024
@lutzberger
Copy link
Contributor Author

It appears to be a dynamic link library that can be used by gtest, but it contains the gtest header itself. Maybe we should use the gtest header in nixpkgs instead, so that it works with our gtest.

It is a currently a static library.

@eclairevoyant
Copy link
Contributor

Please squash the last commit into the init commit

@lutzberger
Copy link
Contributor Author

I guess the automerge is waiting for the queued check to be executed. Why it is so long time queued?

@eclairevoyant eclairevoyant merged commit 3aeb372 into NixOS:master Aug 29, 2024
26 of 27 checks passed
@eclairevoyant
Copy link
Contributor

There's no automerge, and darwin builders take 2+ days usually

@lutzberger
Copy link
Contributor Author

Thanks for the info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants