8000 parse dependencies from meson.build file · Issue #17 · nix-community/nix-init · GitHub
[go: up one dir, main page]

Skip to content

parse dependencies from meson.build file #17

Open

Description

@milahu

just an idea ...

  • parse the top-level meson.build file with muon/src/lang/parser.c
  • find calls to dependency and executable (docs)
  • if has dependencies, add dependency pkg-config

bonus points:

  • parse option calls from meson_options.txt file
  • parse conditions
  • translate dependencies to nixpkgs names

Activity

  1. milahu commented on Feb 4, 2023

    @milahu
    Author

    cheap win: parse project version from meson.build file

    example:
    https://github.com/frida/vala/blob/62ee2b101a5e5f37ce2a073fdb36e7f6ffb553d1/meson.build#L1

    project('vala',
    	'c', 'vala',
    	version: '0.58.0-frida',
    	meson_version: '>= 0.47.0',
    	license: 'LGPL2.1'
    )

    in this example, the project has no git tags (see also #19), so when using the latest commit, the version would be something like unstable-2022-11-07

    a version like 0.58.0-frida-unstable-2022-11-07 is more useful to see API/ABI compatibility (semantic versioning)

    see also RFC 107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0