-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaks pino for some reason
- Loading branch information
Showing
6 changed files
with
1,300 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ lib | ||
, nixosTests | ||
, stdenv | ||
, fetchFromGitHub | ||
, makeWrapper | ||
, nodejs | ||
, pkgs | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "hoon-language-server"; | ||
version = "1.1.0"; | ||
|
||
nativeBuildInputs = [ | ||
nodejs | ||
makeWrapper | ||
]; | ||
src = ./.; | ||
buildPhase = | ||
let | ||
nodeDependencies = ((import ./node-composition.nix { | ||
inherit pkgs nodejs; | ||
inherit (stdenv.hostPlatform) system; | ||
}).nodeDependencies.override (old: { | ||
# access to path '/nix/store/...-source' is forbidden in restricted mode | ||
src = ./.; | ||
dontNpmInstall = true; | ||
})); | ||
in | ||
'' | ||
runHook preBuild | ||
ln -s ${nodeDependencies}/lib/node_modules . | ||
export PATH="${nodeDependencies}/bin:$PATH" | ||
npm run build | ||
runHook postBuild | ||
''; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p $out/share | ||
cp -a . $out/share/hoon-language-server | ||
makeWrapper ${nodejs}/bin/node $out/bin/hoon-language-server \ | ||
--add-flags $out/share/hoon-language-server/out/index.js | ||
runHook postInstall | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file has been generated by node2nix 1.9.0. Do not edit! | ||
|
||
{pkgs ? import <nixpkgs> { | ||
inherit system; | ||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}: | ||
|
||
let | ||
nodeEnv = import ./node-env.nix { | ||
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript; | ||
inherit pkgs nodejs; | ||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null; | ||
}; | ||
in | ||
import ./node-packages.nix { | ||
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit; | ||
inherit nodeEnv; | ||
} |
Oops, something went wrong.