css-variables-language-server: fix darwin build (#527917)
This commit is contained in:
@@ -20,15 +20,21 @@ buildNpmPackage (finalAttrs: {
|
||||
hash = "sha256-NdacBF8sUOij6k4AkMim93LrBJi8JL43q/N8GryTXHA=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-cgX/M05UGsx87QO/Ge0VCD2hQ9MkfJarJVNCj/IcnM0=";
|
||||
npmDepsHash = "sha256-9iPS7/fiJFBFlqt71q5i9rY0lc3tqYeAddb+oB1uxZc=";
|
||||
npmDepsFetcherVersion = 2;
|
||||
npmWorkspace = "packages/css-variables-language-server";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
npmPruneFlags = [
|
||||
"--include-workspace-root=false"
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libsecret
|
||||
npmInstallFlags = [
|
||||
"--workspace=packages/css-variables-language-server"
|
||||
"--include-workspace-root=false"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
@@ -39,12 +45,11 @@ buildNpmPackage (finalAttrs: {
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/lib $out/bin
|
||||
|
||||
cp -r node_modules $out/lib
|
||||
cp -r packages $out/lib
|
||||
|
||||
makeWrapper ${nodejs}/bin/node $out/bin/index.js --add-flags "$out/lib/packages/css-variables-language-server/dist/index.js"
|
||||
|
||||
mv $out/bin/index.js $out/bin/css-variables-language-server
|
||||
makeWrapper ${nodejs}/bin/node $out/bin/css-variables-language-server --add-flags "$out/lib/packages/css-variables-language-server/dist/index.js"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user