summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nodejs.nix36
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
- }