Skip to content

Nix Os & Devbox & pkg-config #2440

@oleg-lukasonok

Description

@oleg-lukasonok

Hello,

During npm install within application which uses canvas, I am facing below issue:

gyp: Call to 'pkg-config cairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp

Devbox version: 0.13.5

Here is my devbox.json:

{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json",
  "packages": [
    "[email protected]",
    "nodejs@18",
    "pkg-config@latest",
    "cairo@latest",
    "pango@latest",
    "libpng@latest",
    "giflib@latest",
    "librsvg@latest",
    "libjpeg@latest",
    "pixman@latest"
  ],
  "env": {
    "DEVBOX_COREPACK_ENABLED": "true"
  },
  "shell": {
    "init_hook": [],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  }
}

Maybe anyone has an idea what could be an issue ? Or how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions