-
-
Save sheeldotme/d65dacf03950a2f808c91d18b4cea85d to your computer and use it in GitHub Desktop.
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
let | |
pkgs = import <nixpkgs> {}; | |
buildNodejs = pkgs.callPackage <nixpkgs/pkgs/development/web/nodejs/nodejs.nix> { | |
libuv = pkgs.callPackage <nixpkgs/pkgs/development/libraries/libuv> { | |
inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices CoreServices; | |
fetchFromGitHub = {owner, repo, rev, sha256}: pkgs.fetchFromGitHub { | |
owner = "libuv"; | |
repo = "libuv"; | |
rev = "v1.28.0"; | |
sha256 = "0l0gx69sdy3sv3pirjbca2ws54n9d83mj0j96h77k0ncywimvi64"; | |
}; | |
}; | |
openssl = pkgs.openssl_1_1; | |
}; | |
nodejs = buildNodejs { | |
version = "12.2.0"; | |
sha256 = "10vr8yqrvdmcaszg7l7cjchzzik709vcygcnpkjf2sjhz929glf5"; | |
}; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "test-app"; | |
src = ./.; | |
buildInputs = [ nodejs ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment