2022-05-06 22:50:19 +02:00
|
|
|
# Do not use overrides in this file to add `meta.mainProgram` to packges. Use `./main-programs.nix`
|
|
|
|
# instead.
|
|
|
|
{ pkgs, nodejs }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs)
|
|
|
|
stdenv
|
|
|
|
lib
|
|
|
|
callPackage
|
|
|
|
fetchFromGitHub
|
|
|
|
fetchurl
|
2022-09-28 15:57:51 +02:00
|
|
|
fetchpatch
|
2022-05-06 22:50:19 +02:00
|
|
|
nixosTests;
|
|
|
|
|
|
|
|
since = version: lib.versionAtLeast nodejs.version version;
|
|
|
|
before = version: lib.versionOlder nodejs.version version;
|
|
|
|
in
|
|
|
|
|
|
|
|
final: prev: {
|
|
|
|
"@angular/cli" = prev."@angular/cli".override {
|
|
|
|
prePatch = ''
|
|
|
|
export NG_CLI_ANALYTICS=false
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
"@electron-forge/cli" = prev."@electron-forge/cli".override {
|
2022-05-13 22:26:55 +02:00
|
|
|
buildInputs = [ final.node-gyp-build ];
|
|
|
|
};
|
|
|
|
|
2022-06-16 05:32:11 +02:00
|
|
|
"@forge/cli" = prev."@forge/cli".override {
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
libsecret
|
|
|
|
final.node-gyp-build
|
|
|
|
final.node-pre-gyp
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-09-28 12:55:28 +02:00
|
|
|
"@medable/mdctl-cli" = prev."@medable/mdctl-cli".override (oldAttrs: {
|
2022-05-13 22:26:55 +02:00
|
|
|
nativeBuildInputs = with pkgs; with darwin.apple_sdk.frameworks; [
|
|
|
|
glib
|
|
|
|
libsecret
|
|
|
|
pkg-config
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
AppKit
|
|
|
|
Security
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
final.node-gyp-build
|
|
|
|
final.node-pre-gyp
|
|
|
|
nodejs
|
|
|
|
];
|
2022-09-28 12:55:28 +02:00
|
|
|
|
|
|
|
meta = oldAttrs.meta // { broken = since "16"; };
|
|
|
|
});
|
2022-05-13 22:26:55 +02:00
|
|
|
mdctl-cli = final."@medable/mdctl-cli";
|
2022-05-06 22:50:19 +02:00
|
|
|
|
|
|
|
autoprefixer = prev.autoprefixer.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02: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; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aws-azure-login = prev.aws-azure-login.override (oldAttrs: {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
prePatch = ''
|
|
|
|
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/aws-azure-login \
|
|
|
|
--set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium}/bin/chromium
|
|
|
|
'';
|
|
|
|
meta = oldAttrs.meta // { platforms = lib.platforms.linux; };
|
|
|
|
});
|
|
|
|
|
2022-07-26 14:06:35 +02:00
|
|
|
balanceofsatoshis = prev.balanceofsatoshis.override {
|
|
|
|
nativeBuildInputs = [ pkgs.installShellFiles ];
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd bos\
|
|
|
|
--bash <($out/bin/bos completion bash)\
|
|
|
|
--zsh <($out/bin/bos completion zsh)\
|
|
|
|
--fish <($out/bin/bos completion fish)
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-05-06 22:50:19 +02:00
|
|
|
bitwarden-cli = prev."@bitwarden/cli".override {
|
|
|
|
name = "bitwarden-cli";
|
2022-09-29 17:29:32 +02:00
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
pkg-config
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreText
|
|
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
2022-09-30 20:30:34 +02:00
|
|
|
giflib
|
2022-09-29 17:29:32 +02:00
|
|
|
];
|
2022-05-06 22:50:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
bower2nix = prev.bower2nix.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
postInstall = ''
|
|
|
|
for prog in bower2nix fetch-bower; do
|
|
|
|
wrapProgram "$out/bin/$prog" --prefix PATH : ${lib.makeBinPath [ pkgs.git pkgs.nix ]}
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
carbon-now-cli = prev.carbon-now-cli.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
prePatch = ''
|
|
|
|
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/carbon-now \
|
|
|
|
--set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium.outPath}/bin/chromium
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
coc-imselect = prev.coc-imselect.override (oldAttrs: {
|
|
|
|
meta = oldAttrs.meta // { broken = since "10"; };
|
|
|
|
});
|
|
|
|
|
|
|
|
dat = prev.dat.override (oldAttrs: {
|
|
|
|
buildInputs = [ final.node-gyp-build pkgs.libtool pkgs.autoconf pkgs.automake ];
|
|
|
|
meta = oldAttrs.meta // { broken = since "12"; };
|
|
|
|
});
|
|
|
|
|
2022-09-07 05:21:18 +02:00
|
|
|
eask = prev."@emacs-eask/cli".override {
|
|
|
|
name = "eask";
|
|
|
|
};
|
|
|
|
|
2022-05-06 22:50:19 +02:00
|
|
|
# NOTE: this is a stub package to fetch npm dependencies for
|
|
|
|
# ../../applications/video/epgstation
|
|
|
|
epgstation = prev."epgstation-../../applications/video/epgstation".override (oldAttrs: {
|
2022-09-27 00:01:07 +02:00
|
|
|
buildInputs = [ pkgs.postgresql ];
|
2022-09-30 20:30:34 +02:00
|
|
|
nativeBuildInputs = [ final.node-pre-gyp final.node-gyp-build pkgs.which ];
|
2022-05-06 22:50:19 +02:00
|
|
|
meta = oldAttrs.meta // { platforms = lib.platforms.none; };
|
|
|
|
});
|
|
|
|
|
|
|
|
# NOTE: this is a stub package to fetch npm dependencies for
|
|
|
|
# ../../applications/video/epgstation/client
|
|
|
|
epgstation-client = prev."epgstation-client-../../applications/video/epgstation/client".override (oldAttrs: {
|
|
|
|
meta = oldAttrs.meta // { platforms = lib.platforms.none; };
|
|
|
|
});
|
|
|
|
|
|
|
|
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 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02: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 20:27:52 +02: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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-05-06 22:50:19 +02:00
|
|
|
flood = prev.flood.override {
|
|
|
|
buildInputs = [ final.node-pre-gyp ];
|
|
|
|
};
|
|
|
|
|
|
|
|
git-ssb = prev.git-ssb.override (oldAttrs: {
|
|
|
|
buildInputs = [ final.node-gyp-build ];
|
|
|
|
meta = oldAttrs.meta // { broken = since "10"; };
|
|
|
|
});
|
|
|
|
|
2022-09-18 11:09:38 +02:00
|
|
|
graphite-cli = prev."@withgraphite/graphite-cli".override {
|
|
|
|
name = "graphite-cli";
|
2022-10-25 19:49:57 +02:00
|
|
|
nativeBuildInputs = [ pkgs.installShellFiles ];
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd gt \
|
|
|
|
--bash <($out/bin/gt completion) \
|
|
|
|
--zsh <($out/bin/gt completion)
|
|
|
|
'';
|
2022-09-18 11:09:38 +02:00
|
|
|
};
|
|
|
|
|
2022-06-05 18:17:22 +02:00
|
|
|
graphql-language-service-cli = prev.graphql-language-service-cli.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-06-05 18:17:22 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/graphql-lsp" \
|
|
|
|
--prefix NODE_PATH : ${final.graphql}/lib/node_modules
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-05-06 22:50:19 +02:00
|
|
|
hsd = prev.hsd.override {
|
|
|
|
buildInputs = [ final.node-gyp-build pkgs.unbound ];
|
|
|
|
};
|
|
|
|
|
|
|
|
ijavascript = prev.ijavascript.override (oldAttrs: {
|
|
|
|
preRebuild = ''
|
2022-09-27 20:38:37 +02:00
|
|
|
export npm_config_zmq_external=true
|
2022-05-06 22:50:19 +02: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; };
|
|
|
|
});
|
|
|
|
|
|
|
|
joplin = prev.joplin.override {
|
2022-09-30 20:30:34 +02:00
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
2022-05-06 22:50:19 +02: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 15:57:51 +02:00
|
|
|
|
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
2022-05-06 22:50:19 +02:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.AppKit
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
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 20:44:35 +02:00
|
|
|
keyoxide = prev.keyoxide.override {
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-05-06 22:50:19 +02:00
|
|
|
makam = prev.makam.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/makam" --prefix PATH : ${lib.makeBinPath [ nodejs ]}
|
|
|
|
${
|
|
|
|
if stdenv.isLinux
|
2022-05-10 23:52:26 +02:00
|
|
|
then "patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 \"$out/lib/node_modules/makam/makam-bin-linux64\""
|
2022-05-06 22:50:19 +02:00
|
|
|
else ""
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-11-07 15:15:19 +01:00
|
|
|
manta = prev.manta.override ( oldAttrs: {
|
2022-05-06 22:50:19 +02:00
|
|
|
nativeBuildInputs = with pkgs; [ nodejs-14_x installShellFiles ];
|
|
|
|
postInstall = ''
|
|
|
|
# create completions, following upstream procedure https://github.com/joyent/node-manta/blob/v5.2.3/Makefile#L85-L91
|
|
|
|
completion_cmds=$(find ./bin -type f -printf "%f\n")
|
|
|
|
|
|
|
|
node ./lib/create_client.js
|
|
|
|
for cmd in $completion_cmds; do
|
|
|
|
installShellCompletion --cmd $cmd --bash <(./bin/$cmd --completion)
|
|
|
|
done
|
|
|
|
'';
|
2022-11-07 15:15:19 +01:00
|
|
|
meta = oldAttrs.meta // { maintainers = with lib.maintainers; [ teutat3s ]; };
|
|
|
|
});
|
2022-05-06 22:50:19 +02:00
|
|
|
|
|
|
|
mermaid-cli = prev."@mermaid-js/mermaid-cli".override (
|
|
|
|
if stdenv.isDarwin
|
|
|
|
then {}
|
|
|
|
else {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
prePatch = ''
|
|
|
|
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/mmdc \
|
|
|
|
--set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium.outPath}/bin/chromium
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
|
|
|
near-cli = prev.near-cli.override {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
libusb1
|
|
|
|
final.prebuild-install
|
|
|
|
final.node-gyp-build
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
node-gyp = prev.node-gyp.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02: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-inspector = prev.node-inspector.override (oldAttrs: {
|
|
|
|
buildInputs = [ final.node-pre-gyp ];
|
|
|
|
meta = oldAttrs.meta // { broken = since "10"; };
|
|
|
|
});
|
|
|
|
|
|
|
|
node-red = prev.node-red.override {
|
|
|
|
buildInputs = [ final.node-pre-gyp ];
|
|
|
|
};
|
|
|
|
|
|
|
|
node2nix = prev.node2nix.override {
|
2022-09-28 15:57:51 +02:00
|
|
|
# Get latest commit for misc fixes
|
2022-05-06 22:50:19 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svanderburg";
|
|
|
|
repo = "node2nix";
|
2022-09-28 15:57:51 +02:00
|
|
|
rev = "026360084db8a27095aafdac7125d7f1a93046c8";
|
|
|
|
sha256 = "sha256-zO/xGG10v7HGv58RLX5SFd7QOXAL2vRxCRM8IfRZ8JA=";
|
2022-05-06 22:50:19 +02:00
|
|
|
};
|
2022-09-28 15:57:51 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
|
|
|
postInstall = let
|
|
|
|
# Needed to fix Node.js 16+ - PR svanderburg/node2nix#302
|
|
|
|
npmPatch = fetchpatch {
|
|
|
|
name = "emit-lockfile-v2-and-fix-bin-links-with-npmv7.patch";
|
|
|
|
url = "https://github.com/svanderburg/node2nix/commit/375a055041b5ee49ca5fb3f74a58ca197c90c7d5.patch";
|
|
|
|
hash = "sha256-uVYrXptJILojeur9s2O+J/f2vyPNCaZMn1GM/NoC5n8=";
|
|
|
|
};
|
|
|
|
in ''
|
|
|
|
patch -d $out/lib/node_modules/node2nix -p1 < ${npmPatch}
|
2022-05-06 22:50:19 +02:00
|
|
|
wrapProgram "$out/bin/node2nix" --prefix PATH : ${lib.makeBinPath [ pkgs.nix ]}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
parcel = prev.parcel.override {
|
|
|
|
buildInputs = [ final.node-gyp-build ];
|
|
|
|
preRebuild = ''
|
|
|
|
sed -i -e "s|#!/usr/bin/env node|#! ${nodejs}/bin/node|" node_modules/node-gyp-build/bin.js
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
pnpm = prev.pnpm.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02: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 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02: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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
meta = oldAttrs.meta // { maintainers = with lib.maintainers; [ Luflosi ]; };
|
|
|
|
});
|
|
|
|
|
|
|
|
# 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 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
|
|
|
|
inherit (pkgs.prisma-engines) version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://registry.npmjs.org/prisma/-/prisma-${version}.tgz";
|
2023-01-18 16:00:39 +01:00
|
|
|
sha512 = "sha512-bS96oZ5oDFXYgoF2l7PJ3Mp1wWWfLOo8B/jAfbA2Pn0Wm5Z/owBHzaMQKS3i1CzVBDWWPVnOohmbJmjvkcHS5w==";
|
2022-05-06 22:50:19 +02:00
|
|
|
};
|
|
|
|
postInstall = with pkgs; ''
|
|
|
|
wrapProgram "$out/bin/prisma" \
|
|
|
|
--set PRISMA_MIGRATION_ENGINE_BINARY ${prisma-engines}/bin/migration-engine \
|
|
|
|
--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_INTROSPECTION_ENGINE_BINARY ${prisma-engines}/bin/introspection-engine \
|
|
|
|
--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 15:56:51 +02:00
|
|
|
npmFlags = builtins.toString [ "--ignore-scripts" ];
|
2022-05-06 22:50:19 +02:00
|
|
|
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/pulp" --suffix PATH : ${lib.makeBinPath [
|
|
|
|
pkgs.purescript
|
|
|
|
]}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-11-20 23:19:18 +01:00
|
|
|
readability-cli = prev.readability-cli.override (oldAttrs: {
|
2022-11-20 23:25:21 +01:00
|
|
|
# Wrap src to fix this build error:
|
|
|
|
# > readability-cli/readable.ts: unsupported interpreter directive "#!/usr/bin/env -S deno..."
|
|
|
|
#
|
|
|
|
# Need to wrap the source, instead of patching in patchPhase, because
|
|
|
|
# buildNodePackage only unpacks sources in the installPhase.
|
2022-11-21 09:44:20 +01:00
|
|
|
src = pkgs.srcOnly {
|
2022-11-20 23:25:21 +01:00
|
|
|
src = oldAttrs.src;
|
2022-11-21 09:44:20 +01:00
|
|
|
name = oldAttrs.name;
|
2022-11-20 23:25:21 +01:00
|
|
|
patchPhase = "chmod a-x readable.ts";
|
|
|
|
};
|
|
|
|
|
2022-11-20 23:19:18 +01:00
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2022-05-06 22:50:19 +02:00
|
|
|
reveal-md = prev.reveal-md.override (
|
|
|
|
lib.optionalAttrs (!stdenv.isDarwin) {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
prePatch = ''
|
|
|
|
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/reveal-md \
|
|
|
|
--set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium.outPath}/bin/chromium
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2022-12-23 02:00:09 +01:00
|
|
|
rush = prev."@microsoft/rush".override {
|
|
|
|
name = "rush";
|
|
|
|
};
|
|
|
|
|
2022-05-06 22:50:19 +02:00
|
|
|
ssb-server = prev.ssb-server.override (oldAttrs: {
|
|
|
|
buildInputs = [ pkgs.automake pkgs.autoconf final.node-gyp-build ];
|
|
|
|
meta = oldAttrs.meta // { broken = since "10"; };
|
|
|
|
});
|
|
|
|
|
|
|
|
stf = prev.stf.override (oldAttrs: {
|
|
|
|
meta = oldAttrs.meta // { broken = since "10"; };
|
|
|
|
});
|
|
|
|
|
|
|
|
tailwindcss = prev.tailwindcss.override {
|
|
|
|
plugins = [ ];
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02: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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
teck-programmer = prev.teck-programmer.override {
|
|
|
|
nativeBuildInputs = [ final.node-gyp-build ];
|
|
|
|
buildInputs = [ pkgs.libusb1 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
tedicross = prev."tedicross-git+https://github.com/TediCross/TediCross.git#v0.8.7".override {
|
2022-09-27 21:07:11 +02:00
|
|
|
nativeBuildInputs = with pkgs; [ makeWrapper libtool autoconf ];
|
2022-05-06 22:50:19 +02:00
|
|
|
postInstall = ''
|
|
|
|
makeWrapper '${nodejs}/bin/node' "$out/bin/tedicross" \
|
|
|
|
--add-flags "$out/lib/node_modules/tedicross/main.js"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
thelounge = prev.thelounge.override (oldAttrs: {
|
|
|
|
buildInputs = [ final.node-pre-gyp ];
|
|
|
|
postInstall = ''
|
|
|
|
echo /var/lib/thelounge > $out/lib/node_modules/thelounge/.thelounge_home
|
|
|
|
patch -d $out/lib/node_modules/thelounge -p1 < ${./thelounge-packages-path.patch}
|
|
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) thelounge; };
|
|
|
|
meta = oldAttrs.meta // { maintainers = with lib.maintainers; [ winter ]; };
|
|
|
|
});
|
|
|
|
|
|
|
|
thelounge-plugin-closepms = prev.thelounge-plugin-closepms.override {
|
|
|
|
nativeBuildInputs = [ final.node-pre-gyp ];
|
|
|
|
};
|
|
|
|
|
2022-05-13 22:26:55 +02:00
|
|
|
thelounge-plugin-giphy = prev.thelounge-plugin-giphy.override {
|
2022-09-30 20:30:34 +02:00
|
|
|
nativeBuildInputs = [ final.node-pre-gyp ];
|
2022-05-13 22:26:55 +02:00
|
|
|
};
|
|
|
|
|
2022-05-06 22:50:19 +02:00
|
|
|
thelounge-theme-flat-blue = prev.thelounge-theme-flat-blue.override {
|
|
|
|
nativeBuildInputs = [ final.node-pre-gyp ];
|
2022-09-28 15:57:51 +02: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 22:50:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
thelounge-theme-flat-dark = prev.thelounge-theme-flat-dark.override {
|
|
|
|
nativeBuildInputs = [ final.node-pre-gyp ];
|
2022-09-28 15:57:51 +02: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 22:50:19 +02:00
|
|
|
};
|
|
|
|
|
2022-11-07 15:15:19 +01:00
|
|
|
triton = prev.triton.override (oldAttrs: {
|
2022-05-06 22:50:19 +02:00
|
|
|
nativeBuildInputs = [ pkgs.installShellFiles ];
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd triton --bash <($out/bin/triton completion)
|
|
|
|
'';
|
2022-11-07 15:15:19 +01:00
|
|
|
meta = oldAttrs.meta // { maintainers = with lib.maintainers; [ teutat3s ]; };
|
|
|
|
});
|
2022-05-06 22:50:19 +02:00
|
|
|
|
2022-05-13 22:26:55 +02:00
|
|
|
ts-node = prev.ts-node.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/ts-node" \
|
|
|
|
--prefix NODE_PATH : ${final.typescript}/lib/node_modules
|
|
|
|
'';
|
2022-05-13 22:26:55 +02:00
|
|
|
};
|
2022-05-06 22:50:19 +02:00
|
|
|
|
2022-05-13 22:26:55 +02:00
|
|
|
tsun = prev.tsun.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/tsun" \
|
|
|
|
--prefix NODE_PATH : ${final.typescript}/lib/node_modules
|
|
|
|
'';
|
2022-05-13 22:26:55 +02:00
|
|
|
};
|
2022-05-06 22:50:19 +02:00
|
|
|
|
|
|
|
typescript-language-server = prev.typescript-language-server.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
postInstall = ''
|
2023-01-11 16:48:17 +01:00
|
|
|
${pkgs.xorg.lndir}/bin/lndir ${final.typescript} $out
|
2022-05-06 22:50:19 +02: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 22:26:55 +02:00
|
|
|
final.node-pre-gyp
|
2022-05-06 22:50:19 +02:00
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
libjpeg
|
2022-05-13 22:26:55 +02:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreText
|
2022-05-06 22:50:19 +02: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 02:24:19 +02:00
|
|
|
if [[ ! -d ''${dep##*/} ]]; then
|
|
|
|
ln -s "${final.vega-cli}/lib/node_modules/vega-cli/node_modules/''${dep##*/}"
|
2022-05-06 22:50:19 +02:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
passthru.tests = {
|
|
|
|
simple-execution = callPackage ./package-tests/vega-lite.nix {
|
|
|
|
inherit (final) vega-lite;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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; [
|
|
|
|
pixman
|
|
|
|
cairo
|
|
|
|
pango
|
2022-05-13 22:26:55 +02:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreText
|
2022-05-06 22:50:19 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
webtorrent-cli = prev.webtorrent-cli.override {
|
|
|
|
buildInputs = [ final.node-gyp-build ];
|
|
|
|
};
|
|
|
|
|
2022-09-13 14:38:45 +02:00
|
|
|
wrangler = prev.wrangler.override (oldAttrs: {
|
|
|
|
meta = oldAttrs.meta // { broken = before "16.13"; };
|
|
|
|
});
|
|
|
|
|
2022-05-06 22:50:19 +02:00
|
|
|
yaml-language-server = prev.yaml-language-server.override {
|
2022-08-14 06:48:50 +02:00
|
|
|
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
|
2022-05-06 22:50:19 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/yaml-language-server" \
|
|
|
|
--prefix NODE_PATH : ${final.prettier}/lib/node_modules
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|