Skip to content

Commit 93c3d37

Browse files
committed
Fix building extension
1 parent 953d5b1 commit 93c3d37

File tree

3 files changed

+4255
-2233
lines changed

3 files changed

+4255
-2233
lines changed

vscode-extension/default.nix

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{ pkgs ? import <nixpkgs> {} }:
22

3-
pkgs.stdenv.mkDerivation {
3+
pkgs.buildNpmPackage {
44
pname = "haskell-debugger-extension";
55
version = "0.1.0";
66
src = ./.;
7-
nativeBuildInputs = [pkgs.nodejs pkgs.yarn pkgs.vsce pkgs.cacert];
7+
8+
npmDepsHash = "sha256-ZNrEHzO2/uO9kE2LXBqvqiM8ZMF1AZ1//loCQ6zHzGc=";
9+
10+
nativeBuildInputs = [
11+
pkgs.nodejs pkgs.vsce pkgs.cacert pkgs.nodePackages.rimraf
12+
pkgs.esbuild pkgs.pkg-config pkgs.libsecret.dev
13+
];
14+
815
buildPhase = ''
9-
export HOME=$TMPDIR
10-
touch $HOME/.yarnrc
11-
yarn install --frozen-lockfile
12-
yarn run build
13-
yarn run package
16+
npm run package
1417
'';
1518

1619
installPhase = ''

0 commit comments

Comments
 (0)