diff options
author | Nick Van Doorn <nick@nvandoorn.com> | 2023-05-31 21:51:31 +0000 |
---|---|---|
committer | Nick Van Doorn <nick@nvandoorn.com> | 2023-05-31 21:51:31 +0000 |
commit | 71ab3c9712b12f6043333c76faa061a8328a3754 (patch) | |
tree | 066ae3a3141dd6299270dc64a7558164f7c1c1e4 | |
parent | a16acd5c8997132993bb664a6e817677cb87bfa8 (diff) |
Remove nodejs.nix
Nix ships the Node we need now
-rw-r--r-- | nodejs.nix | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/nodejs.nix b/nodejs.nix deleted file mode 100644 index 71e8d04..0000000 --- a/nodejs.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ pkgs ? import <nixpkgs> {}, version, sha256 }: - - let - inherit (pkgs) stdenv autoPatchelfHook platforms fetchurl; - inherit (stdenv) mkDerivation lib; - - in mkDerivation { - inherit version; - - name = "nodejs-${version}"; - - src = fetchurl { - url = "https://nodejs.org/dist/v${version}/node-v${version}-linux-x64.tar.xz"; - inherit sha256; - }; - - # QUESTION: put glib and autoPatchelfHook in nativeBuildInputs or buildInputs? - nativeBuildInputs = with pkgs; [autoPatchelfHook]; - buildInputs = with pkgs; [glib]; - - installPhase = '' - echo "joe is installing nodejs" - mkdir -p $out - cp -R ./ $out/ - ''; - - meta = { - description = "Event-driven I/O framework for the V8 JavaScript engine"; - homepage = https://nodejs.org; - license = lib.licenses.mit; - platforms = lib.platforms.linux; - }; - - #TODO do I need this? - #passthru.python = python2; # to ensure nodeEnv uses the same version - } |