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

Build nix-util-c with meson + unit tests #10955

Merged
merged 4 commits into from
Jun 25, 2024
Merged

Build nix-util-c with meson + unit tests #10955

merged 4 commits into from
Jun 25, 2024

Conversation

roberth
Copy link
Member

@roberth roberth commented Jun 25, 2024

Motivation

Some more steps in the process of porting the build system to meson.

Context

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@roberth roberth requested a review from edolstra as a code owner June 25, 2024 14:17
@github-actions github-actions bot added the c api Nix as a C library with a stable interface label Jun 25, 2024
flake.nix Outdated Show resolved Hide resolved
Comment on lines 101 to 82
# TODO rename, because it will conflict with downstream projects
configdata.set_quoted('PACKAGE_VERSION', meson.project_version())

configdata.set_quoted('SYSTEM', host_machine.system())
Copy link
Member

Choose a reason for hiding this comment

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

BTW the more we expose these things, the harder it will be to avoid rebuilds. Not a new things, but existing thing we might reconsider with the C libs.

tests/unit/libutil-support/meson.build Show resolved Hide resolved
tests/unit/libutil-support/package.nix Outdated Show resolved Hide resolved
tests/unit/libutil-support/meson.build Outdated Show resolved Hide resolved
tests/unit/libutil/meson.build Outdated Show resolved Hide resolved
include_directories : include_dirs,
link_with : this_exe,
compile_args : ['-std=c++2a'],
dependencies : [],
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
dependencies : [],

I defined this elsewhere, but I am now wondering whether it is even necessary or not.

Copy link
Member

Choose a reason for hiding this comment

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

Or maybe it's "header deps" and so should be deps_public + subproject deps

Copy link
Member

Choose a reason for hiding this comment

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

We can clean this up later :)

flake.nix Outdated Show resolved Hide resolved
@roberth roberth force-pushed the meson-nix-util-c branch 2 times, most recently from f19c8e3 to 05ddea7 Compare June 25, 2024 19:29
@roberth roberth force-pushed the meson-nix-util-c branch from 05ddea7 to ae3304b Compare June 25, 2024 19:36
@Ericson2314
Copy link
Member

Let's go!

@Ericson2314 Ericson2314 merged commit 65d7c80 into master Jun 25, 2024
17 of 18 checks passed
@Ericson2314 Ericson2314 deleted the meson-nix-util-c branch June 25, 2024 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c api Nix as a C library with a stable interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants