I’m trying to package marp-cli
with yarn2nix
: https://github.com/marp-team/marp-cli
However build complains with
error: builder for '/nix/store/9af4bw297961rx7wc8a2yyzap2fqn0wh-marp-team-marp-cli-modules-2.1.4.drv' failed with exit code 1;
last 10 log lines:
> warning Lockfile has incorrect entry for "pug-runtime@^2.0.4". Ignoring it.
> error Couldn't find any versions for "pug" that matches "^2.0.3" in our cache (possible versions are ""). This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue.
> info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> Error: Couldn't find any versions for "pug-runtime" that matches "^2.0.4" in our cache (possible versions are ""). This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue.
> at MessageError.ExtendableBuiltin (/nix/store/8lajm4glg9v9f7lzpz4r4gm02rqwgnkl-yarn-1.22.18/libexec/yarn/lib/cli.js:721:66)
> at new MessageError (/nix/store/8lajm4glg9v9f7lzpz4r4gm02rqwgnkl-yarn-1.22.18/libexec/yarn/lib/cli.js:750:123)
> at NpmResolver.<anonymous> (/nix/store/8lajm4glg9v9f7lzpz4r4gm02rqwgnkl-yarn-1.22.18/libexec/yarn/lib/cli.js:50430:15)
> at Generator.next (<anonymous>)
> at step (/nix/store/8lajm4glg9v9f7lzpz4r4gm02rqwgnkl-yarn-1.22.18/libexec/yarn/lib/cli.js:310:30)
> at /nix/store/8lajm4glg9v9f7lzpz4r4gm02rqwgnkl-yarn-1.22.18/libexec/yarn/lib/cli.js:321:13
For full logs, run 'nix log /nix/store/9af4bw297961rx7wc8a2yyzap2fqn0wh-marp-team-marp-cli-modules-2.1.4.drv'.
error: 1 dependencies of derivation '/nix/store/9lxxd3250h492b4s2lvxcf53ral42mcn-marp-cli.drv' failed to build
I’ll be honest, I’m a bit dumbfounded, any pointer would be appreciated.
My minimal flake to reproduce:
{
nixConfig.bash-prompt-prefix = "(nix) ";
inputs.flake-utils = {
url = "github:numtide/flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.mkYarnPackage {
name = "marp-cli";
version = "2.1.4";
src = pkgs.fetchFromGitHub {
owner = "marp-team";
repo = "marp-cli";
rev = "v2.1.4";
sha256 = "TkjaCiKrorYF8Ml8Xps3xZxcN5ePTpv2Jw1c2Icqtm8=";
};
};
}
);
}