You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just creating this issue here, in case anyone else ever wants to build this package on NixOS / Nix.
The 'difficult' part is getting the right dependencies in place in order to build the node-canvas package.
For that, I wrote the following flake.nix file, containing the dependencies.:
{description="Paper.js Development";inputs={nixpkgs.url="github:NixOS/nixpkgs/nixos-unstable";flake-utils.url="github:numtide/flake-utils";};outputs={self,nixpkgs,flake-utils}: flake-utils.lib.eachDefaultSystem(system:
# Define pkgs as a variable for easier referenceletpkgs=nixpkgs.legacyPackages.${system};in{devShell=withpkgs;mkShell{buildInputs=[nodejs_18pnpmcairopangopython3pkg-configlibjpeg8gifliblibrsvg];};});}
To install and build: in the root of the package:
nix develop
pnpm install
pnpm build
Here is my flake.lock file so you can have the exact dependency versions:
Just creating this issue here, in case anyone else ever wants to build this package on NixOS / Nix.
The 'difficult' part is getting the right dependencies in place in order to build the
node-canvas
package.For that, I wrote the following flake.nix file, containing the dependencies.:
To install and build: in the root of the package:
Here is my flake.lock file so you can have the exact dependency versions:
Maintainers: we can add these two files to the root of the repo, then NIX/NixOS users can always build the package.
But feel free to close this issue if that is out of scope :)
Hopefully curious NixOS users can still find this issue to save them some time.
The text was updated successfully, but these errors were encountered: