-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Criterion package #44911
Criterion package #44911
Conversation
|
||
meta = { | ||
homepage = "https://github.com/diacritic/BoxFort"; | ||
description = "A simple, cross-platform sandboxing C library powering Criterion."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description should not end with a period: see https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md
I guess I'll also need to reword the commit messages to comply with the CONTRIBUTING.md file. @symphorien Thanks for the review! |
it is enough to force-push your rephrased commits. |
Also, have you tried setting |
No, not yet. I'll go over the complete checklist to see what I can do. |
Experimental library, not versioned, defaulted to 0.0.1
298b4b4
to
b2628f2
Compare
Ok, doCheck=true fails for boxfort. I'm trying to figure out why the tests fail. |
I think the policy for unversioned packages is to use the date of the last commit as a version: https://nixos.org/nixpkgs/manual/#sec-package-naming |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm requesting these changes so that versions can be updated more easily. Boxfort needs to be unstable because as far as I can tell 0.0.1 is not a valid upstream version.
Please also consider adding yourself as a maintainer of these packages.
{stdenv, pkgconfig, fetchFromGitHub, cmake, dyncall, nanomsg, boxfort, csptr, libgit2} : | ||
|
||
stdenv.mkDerivation { | ||
name = "criterion-2.3.2"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name = "criterion-2.3.2"; | |
pname = "criterion"; | |
version = "2.3.2"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, 2.3.3 is out now. It's not a requirement that you have it at the latest version to get this merged though.
src = fetchFromGitHub { | ||
owner = "Snaipe"; | ||
repo = "Criterion"; | ||
rev = "9b70365825aced7333d7867bb5c64c63919ce510"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev = "9b70365825aced7333d7867bb5c64c63919ce510"; | |
rev = "v${version}"; |
{stdenv, fetchFromGitHub, cmake} : | ||
|
||
stdenv.mkDerivation { | ||
name = "csptr-2.0.4"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name = "csptr-2.0.4"; | |
pname = "csptr"; | |
version = "2.0.4"; |
src = fetchFromGitHub { | ||
owner = "Snaipe"; | ||
repo = "libcsptr"; | ||
rev = "82d3b1beafe7ed9f13f75e0d3367c60205e10f27"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev = "82d3b1beafe7ed9f13f75e0d3367c60205e10f27"; | |
rev = "v${version}"; |
{stdenv, fetchFromGitHub, cmake} : | ||
|
||
stdenv.mkDerivation { | ||
name = "boxfort-0.0.1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name = "boxfort-0.0.1"; | |
pname = "boxfort"; | |
version = "unstable-2018-05-10"; |
Are there any updates on this pull request, please? |
I am working on a new derivation (#70609) and wanted to tell you, your |
Thank you for your contributions.
|
I forgot about this pull request. |
Motivation for this change
I wanted to use Criterion as my unit testing framework, but it wasn't present yet as a nixos package.
These are the first packages I've added, so it's best if someone thoroughly looks at this request.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)