canastroHOBBY
7 months ago
Im trying to use Nixpacks to pre-install some python deps that node-canvas
requires:
NIXPACKS_PKGS="python313 pkg-config cairo pango libpng giflib librsvg pixman"
But Im getting the following error:
Package pixman-1 was not found in the pkg-config search path.
0 Replies
Just tried to add NIXPACKS_PKGS="python314"
And got:
installing 'bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env'
error:
… while calling the 'derivationStrict' builtin
at :9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env'
whose name attribute is located at /nix/store/3aiwp69d5ypc79qra1r8j7mp0bwbz4f2-source/pkgs/stdenv/generic/make-derivation.nix:331:7
… while evaluating attribute 'passAsFile' of derivation 'bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env'
at /nix/store/3aiwp69d5ypc79qra1r8j7mp0bwbz4f2-source/pkgs/build-support/trivial-builders/default.nix:69:9:
68| inherit buildCommand name;
69| passAsFile = [ "buildCommand" ]
| ^
70| ++ (derivationArgs.passAsFile or [ ]);
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: undefined variable 'python314'
at /app/.nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix:19:28:
18| '')
19| nodejs_22 pnpm-8_x python314
| ^
20| ];
got through this by using python313.
Now my error is: Package pixman-1 was not found in the pkg-config search path.
And this is what I have
NIXPACKS_PKGS="python313 pixman cairo pango"