2022-08-29 13:39:18 +00:00
|
|
|
{ pkgs, commonFn, langFn, componentsFn }:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
common = commonFn pkgs;
|
|
|
|
lang = langFn pkgs;
|
|
|
|
components = componentsFn pkgs;
|
|
|
|
|
|
|
|
yarn-source = pkgs.mkYarnPackage {
|
|
|
|
name = "squiggle-vscodeext_yarnsource";
|
|
|
|
src = ../packages/vscode-ext;
|
|
|
|
packageJson = ../packages/vscode-ext/package.json;
|
|
|
|
yarnLock = ../yarn.lock;
|
|
|
|
packageResolutions."@quri/squiggle-lang" = lang.build;
|
|
|
|
packageResolutions."@quri/squiggle-components" = components.build;
|
|
|
|
};
|
|
|
|
lint = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "squiggle-vscode-lint";
|
|
|
|
buildInputs = common.buildInputs ++ common.prettier;
|
2022-08-30 03:23:33 +00:00
|
|
|
src =
|
|
|
|
../packages/vscode-ext; # yarn-source + "/libexec/vscode-squiggle/deps/vscode-squiggle";
|
2022-08-29 13:39:18 +00:00
|
|
|
buildPhase = "prettier --check .";
|
|
|
|
installPhase = "mkdir -p $out";
|
|
|
|
};
|
|
|
|
}
|