We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 953d5b1 commit 93c3d37Copy full SHA for 93c3d37
vscode-extension/default.nix
@@ -1,16 +1,19 @@
1
{ pkgs ? import <nixpkgs> {} }:
2
3
-pkgs.stdenv.mkDerivation {
+pkgs.buildNpmPackage {
4
pname = "haskell-debugger-extension";
5
version = "0.1.0";
6
src = ./.;
7
- nativeBuildInputs = [pkgs.nodejs pkgs.yarn pkgs.vsce pkgs.cacert];
+
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
15
buildPhase = ''
- export HOME=$TMPDIR
- touch $HOME/.yarnrc
- yarn install --frozen-lockfile
- yarn run build
- yarn run package
16
+ npm run package
17
'';
18
19
installPhase = ''
0 commit comments