2023-05-08 17:54:01 +00:00
|
|
|
# Do not use overrides in this file to add `meta.mainProgram` to packages. Use `./main-programs.nix`
|
2022-05-06 20:50:19 +00:00
|
|
|
# instead.
|
|
|
|
{ pkgs, nodejs }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs)
|
|
|
|
stdenv
|
|
|
|
lib
|
|
|
|
callPackage
|
|
|
|
fetchFromGitHub
|
|
|
|
fetchurl
|
2022-09-28 13:57:51 +00:00
|
|
|
fetchpatch
|
2022-05-06 20:50:19 +00:00
|
|
|
nixosTests;
|
|
|
|
|
|
|
|
since = version: lib.versionAtLeast nodejs.version version;
|
|
|
|
before = version: lib.versionOlder nodejs.version version;
|
|
|
|
in
|
|
|
|
|
|
|
|
final: prev: {
|
2023-06-01 19:41:10 +00:00
|
|
|
inherit nodejs;
|
|
|
|
|
2022-05-06 20:50:19 +00:00
|
|
|
"@angular/cli" = prev."@angular/cli".override {
|
|
|
|
prePatch = ''
|
|
|
|
export NG_CLI_ANALYTICS=false
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
"@electron-forge/cli" = prev."@electron-forge/cli".override {
|
2022-05-13 20:26:55 +00:00
|
|
|
buildInputs = [ final.node-gyp-build ];
|
|
|
|
};
|
|
|
|
|
2022-05-06 20:50:19 +00:00
|
|
|
autoprefixer = prev.autoprefixer.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/autoprefixer" \
|
|
|
|
--prefix NODE_PATH : ${final.postcss}/lib/node_modules
|
|
|
|
'';
|
|
|
|
passthru.tests = {
|
|
|
|
simple-execution = callPackage ./package-tests/autoprefixer.nix { inherit (final) autoprefixer; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-31 00:02:13 +00:00
|
|
|
bash-language-server = prev.bash-language-server.override {
|
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/bash-language-server" \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ pkgs.shellcheck ]}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-05-06 20:50:19 +00:00
|
|
|
bower2nix = prev.bower2nix.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
for prog in bower2nix fetch-bower; do
|
|
|
|
wrapProgram "$out/bin/$prog" --prefix PATH : ${lib.makeBinPath [ pkgs.git pkgs.nix ]}
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
expo-cli = prev."expo-cli".override (oldAttrs: {
|
|
|
|
# The traveling-fastlane-darwin optional dependency aborts build on Linux.
|
|
|
|
dependencies = builtins.filter (d: d.packageName != "@expo/traveling-fastlane-${if stdenv.isLinux then "darwin" else "linux"}") oldAttrs.dependencies;
|
|
|
|
});
|
|
|
|
|
|
|
|
fast-cli = prev.fast-cli.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
prePatch = ''
|
|
|
|
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/fast \
|
|
|
|
--set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium.outPath}/bin/chromium
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-09-27 18:27:52 +00:00
|
|
|
fauna-shell = prev.fauna-shell.override {
|
|
|
|
# printReleaseNotes just pulls them from GitHub which is not allowed in sandbox
|
|
|
|
preRebuild = ''
|
|
|
|
sed -i 's|"node ./tools/printReleaseNotes"|"true"|' node_modules/faunadb/package.json
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-03-06 02:30:22 +00:00
|
|
|
grammarly-languageserver = prev.grammarly-languageserver.override (old: {
|
|
|
|
meta = old.meta // {
|
|
|
|
# requires EOL Node.js 16
|
|
|
|
# https://github.com/znck/grammarly/issues/334
|
|
|
|
broken = true;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2022-06-05 16:17:22 +00:00
|
|
|
graphql-language-service-cli = prev.graphql-language-service-cli.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-06-05 16:17:22 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/graphql-lsp" \
|
|
|
|
--prefix NODE_PATH : ${final.graphql}/lib/node_modules
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-05-06 20:50:19 +00:00
|
|
|
|
|
|
|
ijavascript = prev.ijavascript.override (oldAttrs: {
|
|
|
|
preRebuild = ''
|
2022-09-27 18:38:37 +00:00
|
|
|
export npm_config_zmq_external=true
|
2022-05-06 20:50:19 +00:00
|
|
|
'';
|
|
|
|
buildInputs = oldAttrs.buildInputs ++ [ final.node-gyp-build pkgs.zeromq ];
|
|
|
|
});
|
|
|
|
|
|
|
|
insect = prev.insect.override (oldAttrs: {
|
|
|
|
nativeBuildInputs = oldAttrs.nativeBuildInputs or [] ++ [ pkgs.psc-package final.pulp ];
|
|
|
|
});
|
|
|
|
|
|
|
|
intelephense = prev.intelephense.override (oldAttrs: {
|
|
|
|
meta = oldAttrs.meta // { license = lib.licenses.unfree; };
|
|
|
|
});
|
|
|
|
|
2024-03-19 09:11:50 +00:00
|
|
|
joplin = prev.joplin.override (oldAttrs:{
|
2023-05-17 17:00:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgs.pkg-config
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
pkgs.xcbuild
|
|
|
|
];
|
2022-05-06 20:50:19 +00:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
# required by sharp
|
|
|
|
# https://sharp.pixelplumbing.com/install
|
|
|
|
vips
|
|
|
|
|
|
|
|
libsecret
|
|
|
|
final.node-gyp-build
|
|
|
|
final.node-pre-gyp
|
2022-09-28 13:57:51 +00:00
|
|
|
|
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
2022-05-06 20:50:19 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
2024-03-19 09:11:50 +00:00
|
|
|
|
|
|
|
# add newer node-addon-api to build sharp
|
|
|
|
# https://github.com/lovell/sharp/issues/3920
|
|
|
|
dependencies = [
|
|
|
|
{
|
|
|
|
name = "node-addon-api";
|
|
|
|
packageName = "node-addon-api";
|
|
|
|
version = "7.1.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.0.tgz";
|
|
|
|
sha512 = "mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
] ++ oldAttrs.dependencies;
|
|
|
|
});
|
2022-05-06 20:50:19 +00:00
|
|
|
|
|
|
|
jsonplaceholder = prev.jsonplaceholder.override {
|
|
|
|
buildInputs = [ nodejs ];
|
|
|
|
postInstall = ''
|
|
|
|
exe=$out/bin/jsonplaceholder
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cat >$exe <<EOF
|
|
|
|
#!${pkgs.runtimeShell}
|
|
|
|
exec -a jsonplaceholder ${nodejs}/bin/node $out/lib/node_modules/jsonplaceholder/index.js
|
|
|
|
EOF
|
|
|
|
chmod a+x $exe
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-09-27 18:44:35 +00:00
|
|
|
keyoxide = prev.keyoxide.override {
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
2023-04-18 19:19:53 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreText
|
2022-09-27 18:44:35 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-05-06 20:50:19 +00:00
|
|
|
makam = prev.makam.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/makam" --prefix PATH : ${lib.makeBinPath [ nodejs ]}
|
2023-02-06 20:49:02 +00:00
|
|
|
${lib.optionalString stdenv.isLinux "patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 \"$out/lib/node_modules/makam/makam-bin-linux64\""}
|
2022-05-06 20:50:19 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
node-gyp = prev.node-gyp.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
# Teach node-gyp to use nodejs headers locally rather that download them form https://nodejs.org.
|
|
|
|
# This is important when build nodejs packages in sandbox.
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/node-gyp" \
|
|
|
|
--set npm_config_nodedir ${nodejs}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
node-red = prev.node-red.override {
|
|
|
|
buildInputs = [ final.node-pre-gyp ];
|
|
|
|
};
|
|
|
|
|
|
|
|
node2nix = prev.node2nix.override {
|
2022-09-28 13:57:51 +00:00
|
|
|
# Get latest commit for misc fixes
|
2022-05-06 20:50:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svanderburg";
|
|
|
|
repo = "node2nix";
|
2023-04-14 13:44:56 +00:00
|
|
|
rev = "315e1b85a6761152f57a41ccea5e2570981ec670";
|
|
|
|
sha256 = "sha256-8OxTOkwBPcnjyhXhxQEDd8tiaQoHt91zUJX5Ka+IXco=";
|
2022-05-06 20:50:19 +00:00
|
|
|
};
|
2022-09-28 13:57:51 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
|
|
|
postInstall = let
|
2023-03-07 15:20:44 +00:00
|
|
|
patches = [
|
2023-04-27 15:06:36 +00:00
|
|
|
# Needed to fix packages with DOS line-endings after above patch - PR svanderburg/node2nix#314
|
|
|
|
(fetchpatch {
|
|
|
|
name = "convert-crlf-for-script-bin-files.patch";
|
|
|
|
url = "https://github.com/svanderburg/node2nix/commit/91aa511fe7107938b0409a02ab8c457a6de2d8ca.patch";
|
|
|
|
hash = "sha256-ISiKYkur/o8enKDzJ8mQndkkSC4yrTNlheqyH+LiXlU=";
|
|
|
|
})
|
2023-04-14 13:44:56 +00:00
|
|
|
# fix nodejs attr names
|
2023-03-07 15:20:44 +00:00
|
|
|
(fetchpatch {
|
2023-04-14 13:44:56 +00:00
|
|
|
url = "https://github.com/svanderburg/node2nix/commit/3b63e735458947ef39aca247923f8775633363e5.patch";
|
|
|
|
hash = "sha256-pe8Xm4mjPh9oKXugoMY6pRl8YYgtdw0sRXN+TienalU=";
|
2023-03-07 15:20:44 +00:00
|
|
|
})
|
|
|
|
];
|
2022-09-28 13:57:51 +00:00
|
|
|
in ''
|
2023-03-07 15:20:44 +00:00
|
|
|
${lib.concatStringsSep "\n" (map (patch: "patch -d $out/lib/node_modules/node2nix -p1 < ${patch}") patches)}
|
2022-05-06 20:50:19 +00:00
|
|
|
wrapProgram "$out/bin/node2nix" --prefix PATH : ${lib.makeBinPath [ pkgs.nix ]}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
pnpm = prev.pnpm.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
|
|
|
|
preRebuild = ''
|
|
|
|
sed 's/"link:/"file:/g' --in-place package.json
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = let
|
|
|
|
pnpmLibPath = lib.makeBinPath [
|
|
|
|
nodejs.passthru.python
|
|
|
|
nodejs
|
|
|
|
];
|
|
|
|
in ''
|
|
|
|
for prog in $out/bin/*; do
|
|
|
|
wrapProgram "$prog" --prefix PATH : ${pnpmLibPath}
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
postcss-cli = prev.postcss-cli.override (oldAttrs: {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/postcss" \
|
|
|
|
--prefix NODE_PATH : ${final.postcss}/lib/node_modules \
|
|
|
|
--prefix NODE_PATH : ${final.autoprefixer}/lib/node_modules
|
|
|
|
ln -s '${final.postcss}/lib/node_modules/postcss' "$out/lib/node_modules/postcss"
|
|
|
|
'';
|
|
|
|
passthru.tests = {
|
|
|
|
simple-execution = callPackage ./package-tests/postcss-cli.nix {
|
|
|
|
inherit (final) postcss-cli;
|
|
|
|
};
|
|
|
|
};
|
2023-11-30 17:38:39 +00:00
|
|
|
meta = oldAttrs.meta // {
|
|
|
|
maintainers = with lib.maintainers; [ Luflosi ];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2022-05-06 20:50:19 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
# To update prisma, please first update prisma-engines to the latest
|
|
|
|
# version. Then change the correct hash to this package. The PR should hold
|
|
|
|
# two commits: one for the engines and the other one for the node package.
|
|
|
|
prisma = prev.prisma.override rec {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
|
|
|
|
inherit (pkgs.prisma-engines) version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://registry.npmjs.org/prisma/-/prisma-${version}.tgz";
|
2024-04-08 18:58:05 +00:00
|
|
|
hash = "sha256-136nEfCJjLLUMO3TZhVrltfqv8nU2fA14+L0JLe6Zfk=";
|
2022-05-06 20:50:19 +00:00
|
|
|
};
|
|
|
|
postInstall = with pkgs; ''
|
|
|
|
wrapProgram "$out/bin/prisma" \
|
2023-07-12 16:23:24 +00:00
|
|
|
--set PRISMA_SCHEMA_ENGINE_BINARY ${prisma-engines}/bin/schema-engine \
|
2022-05-06 20:50:19 +00:00
|
|
|
--set PRISMA_QUERY_ENGINE_BINARY ${prisma-engines}/bin/query-engine \
|
|
|
|
--set PRISMA_QUERY_ENGINE_LIBRARY ${lib.getLib prisma-engines}/lib/libquery_engine.node \
|
|
|
|
--set PRISMA_FMT_BINARY ${prisma-engines}/bin/prisma-fmt
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
simple-execution = pkgs.callPackage ./package-tests/prisma.nix {
|
|
|
|
inherit (final) prisma;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
pulp = prev.pulp.override {
|
|
|
|
# tries to install purescript
|
2022-10-03 13:56:51 +00:00
|
|
|
npmFlags = builtins.toString [ "--ignore-scripts" ];
|
2022-05-06 20:50:19 +00:00
|
|
|
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/pulp" --suffix PATH : ${lib.makeBinPath [
|
|
|
|
pkgs.purescript
|
|
|
|
]}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-12-23 01:00:09 +00:00
|
|
|
rush = prev."@microsoft/rush".override {
|
|
|
|
name = "rush";
|
|
|
|
};
|
|
|
|
|
2022-05-06 20:50:19 +00:00
|
|
|
tailwindcss = prev.tailwindcss.override {
|
|
|
|
plugins = [ ];
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
nodePath=""
|
|
|
|
for p in "$out" "${final.postcss}" $plugins; do
|
|
|
|
nodePath="$nodePath''${nodePath:+:}$p/lib/node_modules"
|
|
|
|
done
|
|
|
|
wrapProgram "$out/bin/tailwind" \
|
|
|
|
--prefix NODE_PATH : "$nodePath"
|
|
|
|
wrapProgram "$out/bin/tailwindcss" \
|
|
|
|
--prefix NODE_PATH : "$nodePath"
|
|
|
|
unset nodePath
|
|
|
|
'';
|
|
|
|
passthru.tests = {
|
|
|
|
simple-execution = callPackage ./package-tests/tailwindcss.nix {
|
|
|
|
inherit (final) tailwindcss;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-11-25 10:59:04 +00:00
|
|
|
teck-programmer = prev.teck-programmer.override ({ meta, ... }: {
|
2022-05-06 20:50:19 +00:00
|
|
|
nativeBuildInputs = [ final.node-gyp-build ];
|
|
|
|
buildInputs = [ pkgs.libusb1 ];
|
2023-11-25 10:59:04 +00:00
|
|
|
meta = meta // { license = lib.licenses.gpl3Plus; };
|
|
|
|
});
|
2022-05-06 20:50:19 +00:00
|
|
|
|
|
|
|
thelounge-plugin-closepms = prev.thelounge-plugin-closepms.override {
|
|
|
|
nativeBuildInputs = [ final.node-pre-gyp ];
|
|
|
|
};
|
|
|
|
|
2022-05-13 20:26:55 +00:00
|
|
|
thelounge-plugin-giphy = prev.thelounge-plugin-giphy.override {
|
2022-09-30 18:30:34 +00:00
|
|
|
nativeBuildInputs = [ final.node-pre-gyp ];
|
2022-05-13 20:26:55 +00:00
|
|
|
};
|
|
|
|
|
2022-05-06 20:50:19 +00:00
|
|
|
thelounge-theme-flat-blue = prev.thelounge-theme-flat-blue.override {
|
|
|
|
nativeBuildInputs = [ final.node-pre-gyp ];
|
2022-09-28 13:57:51 +00:00
|
|
|
# TODO: needed until upstream pins thelounge version 4.3.1+ (which fixes dependency on old sqlite3 and transitively very old node-gyp 3.x)
|
|
|
|
preRebuild = ''
|
|
|
|
rm -r node_modules/node-gyp
|
|
|
|
'';
|
2022-05-06 20:50:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
thelounge-theme-flat-dark = prev.thelounge-theme-flat-dark.override {
|
|
|
|
nativeBuildInputs = [ final.node-pre-gyp ];
|
2022-09-28 13:57:51 +00:00
|
|
|
# TODO: needed until upstream pins thelounge version 4.3.1+ (which fixes dependency on old sqlite3 and transitively very old node-gyp 3.x)
|
|
|
|
preRebuild = ''
|
|
|
|
rm -r node_modules/node-gyp
|
|
|
|
'';
|
2022-05-06 20:50:19 +00:00
|
|
|
};
|
|
|
|
|
2022-05-13 20:26:55 +00:00
|
|
|
ts-node = prev.ts-node.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/ts-node" \
|
2023-06-26 18:36:12 +00:00
|
|
|
--prefix NODE_PATH : ${pkgs.typescript}/lib/node_modules
|
2022-05-06 20:50:19 +00:00
|
|
|
'';
|
2022-05-13 20:26:55 +00:00
|
|
|
};
|
2022-05-06 20:50:19 +00:00
|
|
|
|
2022-05-13 20:26:55 +00:00
|
|
|
tsun = prev.tsun.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/tsun" \
|
2023-06-26 18:36:12 +00:00
|
|
|
--prefix NODE_PATH : ${pkgs.typescript}/lib/node_modules
|
2022-05-06 20:50:19 +00:00
|
|
|
'';
|
2022-05-13 20:26:55 +00:00
|
|
|
};
|
2022-05-06 20:50:19 +00:00
|
|
|
|
|
|
|
typescript-language-server = prev.typescript-language-server.override {
|
2022-08-14 04:48:50 +00:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 20:50:19 +00:00
|
|
|
postInstall = ''
|
2023-06-26 18:36:12 +00:00
|
|
|
${pkgs.xorg.lndir}/bin/lndir ${pkgs.typescript} $out
|
2022-05-06 20:50:19 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
uppy-companion = prev."@uppy/companion".override {
|
|
|
|
name = "uppy-companion";
|
|
|
|
};
|
|
|
|
|
|
|
|
vega-cli = prev.vega-cli.override {
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
buildInputs = with pkgs; [
|
2022-05-13 20:26:55 +00:00
|
|
|
final.node-pre-gyp
|
2022-05-06 20:50:19 +00:00
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
libjpeg
|
2022-05-13 20:26:55 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreText
|
2022-05-06 20:50:19 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
vega-lite = prev.vega-lite.override {
|
|
|
|
postInstall = ''
|
|
|
|
cd node_modules
|
|
|
|
for dep in ${final.vega-cli}/lib/node_modules/vega-cli/node_modules/*; do
|
2022-08-25 00:24:19 +00:00
|
|
|
if [[ ! -d ''${dep##*/} ]]; then
|
|
|
|
ln -s "${final.vega-cli}/lib/node_modules/vega-cli/node_modules/''${dep##*/}"
|
2022-05-06 20:50:19 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
passthru.tests = {
|
|
|
|
simple-execution = callPackage ./package-tests/vega-lite.nix {
|
|
|
|
inherit (final) vega-lite;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-24 19:12:10 +00:00
|
|
|
volar = final."@volar/vue-language-server".override ({ meta, ... }: {
|
2023-05-02 15:07:09 +00:00
|
|
|
name = "volar";
|
2024-01-24 19:12:10 +00:00
|
|
|
meta = meta // { mainProgram = "vue-language-server"; };
|
|
|
|
});
|
2023-05-02 15:07:09 +00:00
|
|
|
|
2022-05-06 20:50:19 +00:00
|
|
|
wavedrom-cli = prev.wavedrom-cli.override {
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config final.node-pre-gyp ];
|
|
|
|
# These dependencies are required by
|
|
|
|
# https://github.com/Automattic/node-canvas.
|
|
|
|
buildInputs = with pkgs; [
|
2023-03-23 00:35:59 +00:00
|
|
|
giflib
|
2022-05-06 20:50:19 +00:00
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
2022-05-13 20:26:55 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreText
|
2022-05-06 20:50:19 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
webtorrent-cli = prev.webtorrent-cli.override {
|
|
|
|
buildInputs = [ final.node-gyp-build ];
|
|
|
|
};
|
|
|
|
|
2023-12-05 07:08:39 +00:00
|
|
|
wrangler = prev.wrangler.override (oldAttrs:
|
|
|
|
let
|
2024-03-19 05:24:11 +00:00
|
|
|
workerdVersion = (lib.findFirst (dep: dep.name == "workerd") null oldAttrs.dependencies).version;
|
2023-12-05 07:08:39 +00:00
|
|
|
linuxWorkerd = {
|
|
|
|
name = "_at_cloudflare_slash_workerd-linux-64";
|
|
|
|
packageName = "@cloudflare/workerd-linux-64";
|
|
|
|
# Should be same version as workerd
|
2024-03-19 05:24:11 +00:00
|
|
|
version = workerdVersion;
|
2023-12-05 07:08:39 +00:00
|
|
|
src = fetchurl {
|
2024-03-19 05:24:11 +00:00
|
|
|
url = "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-${workerdVersion}.tgz";
|
|
|
|
sha512 = "G1BEzbw9TFIeMvc425F145IetC7fuH4KOkGhseLq9y/mt5PfDWkghwmXSK+q0BiMwm0XAobtzVlHcEr2u4WlRQ==";
|
2023-12-05 07:08:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
linuxWorkerdArm = {
|
|
|
|
name = "_at_cloudflare_slash_workerd-linux-arm64";
|
|
|
|
packageName = "@cloudflare/workerd-linux-arm64";
|
|
|
|
# Should be same version as workerd
|
2024-03-19 05:24:11 +00:00
|
|
|
version = workerdVersion;
|
2023-12-05 07:08:39 +00:00
|
|
|
src = fetchurl {
|
2024-03-19 05:24:11 +00:00
|
|
|
url = "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-${workerdVersion}.tgz";
|
|
|
|
sha512 = "LLk/d/y77TRu6QOG3CJUI2cD3Ff2lSg0ts6G83bsm9ZK+WKObWFFSPBy9l81m3EnlKFh7RZCzxN4J10kuDaO8w==";
|
2023-12-05 07:08:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
darwinWorkerd = {
|
|
|
|
name = "_at_cloudflare_slash_workerd-darwin-64";
|
|
|
|
packageName = "@cloudflare/workerd-darwin-64";
|
|
|
|
# Should be same version as workerd
|
2024-03-19 05:24:11 +00:00
|
|
|
version = workerdVersion;
|
2023-12-05 07:08:39 +00:00
|
|
|
src = fetchurl {
|
2024-03-19 05:24:11 +00:00
|
|
|
url = "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-${workerdVersion}.tgz";
|
|
|
|
sha512 = "rfHlvsWzkqEEQNvm14AOE/BYHYzB9wxQHCaZZEgwOuTl5KpDcs9La0N0LaDTR78ESumIWOcifVmko2VTrZb7TQ==";
|
2023-12-05 07:08:39 +00:00
|
|
|
};
|
2023-12-04 11:15:58 +00:00
|
|
|
};
|
2023-12-05 07:08:39 +00:00
|
|
|
darwinWorkerdArm = {
|
|
|
|
name = "_at_cloudflare_slash_workerd-darwin-arm64";
|
|
|
|
packageName = "@cloudflare/workerd-darwin-arm64";
|
|
|
|
# Should be same version as workerd
|
2024-03-19 05:24:11 +00:00
|
|
|
version = workerdVersion;
|
2023-12-05 07:08:39 +00:00
|
|
|
src = fetchurl {
|
2024-03-19 05:24:11 +00:00
|
|
|
url = "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-${workerdVersion}.tgz";
|
|
|
|
sha512 = "IXGOxHsPdRYfAzcY6IroI1PDvx3hhXf18qFCloHp8Iw5bzLgq/PTjcp10Z/2xedZ2hVlfpHy1eEptsTmi9YeNw==";
|
2023-12-05 07:08:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
meta = oldAttrs.meta // { broken = before "16.13"; };
|
|
|
|
buildInputs = [ pkgs.llvmPackages.libcxx pkgs.llvmPackages.libunwind ] ++ lib.optional stdenv.isLinux pkgs.autoPatchelfHook;
|
|
|
|
preFixup = ''
|
|
|
|
# patch elf is trying to patch binary for sunos
|
|
|
|
rm -r $out/lib/node_modules/wrangler/node_modules/@esbuild/sunos-x64
|
|
|
|
'';
|
|
|
|
dependencies = oldAttrs.dependencies
|
|
|
|
++ lib.optional (stdenv.isLinux && stdenv.isx86_64) linuxWorkerd
|
|
|
|
++ lib.optional (stdenv.isLinux && stdenv.isAarch64) linuxWorkerdArm
|
|
|
|
++ lib.optional (stdenv.isDarwin && stdenv.isx86_64) darwinWorkerd
|
|
|
|
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) darwinWorkerdArm;
|
2023-12-04 11:15:58 +00:00
|
|
|
});
|
2022-05-06 20:50:19 +00:00
|
|
|
}
|