mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
We want to get newer stuff in the devshell, but keep a stabler pin for the static binaries (until darwin stdenv stabilizes, most notably the big brain work over at https://github.com/NixOS/nixpkgs/pull/256590) ## Test plan N/A nix stuff :clueless:
25 lines
1004 B
Nix
25 lines
1004 B
Nix
{ pkgs, fetchurl }:
|
|
pkgs.nodejs-18_x.overrideAttrs (oldAttrs: {
|
|
# don't override version here, as it won't be in binary cache
|
|
# and building is super expensive
|
|
# version = "16.19.0";
|
|
|
|
passthru.pkgs = oldAttrs.passthru.pkgs // {
|
|
pnpm = oldAttrs.passthru.pkgs.pnpm.override rec {
|
|
# PLEASE UPDATE THE SHA512 BELOW OR NOTIFY ONE OF THE NIX USERS BEFORE MERGING A CHANGE TO THESE FILES
|
|
version = "8.3.0";
|
|
src = fetchurl {
|
|
url = "https://registry.npmjs.org/pnpm/-/pnpm-${version}.tgz";
|
|
sha512 = "sha512-wRS8ap/SPxBqbUMzcUNkoA0suLqk9BqMlvi8dM2FRuhwUDgqVGYLc5jQ6Ww3uqVc+84zJvN2GYmTWCubaoWPtQ==";
|
|
};
|
|
};
|
|
typescript = oldAttrs.passthru.pkgs.typescript.overrideAttrs (oldAttrs: rec {
|
|
version = "5.2.2";
|
|
src = fetchurl {
|
|
url = "https://registry.npmjs.org/typescript/-/typescript-${version}.tgz";
|
|
sha512 = "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==";
|
|
};
|
|
});
|
|
};
|
|
})
|