Skip to content

Instantly share code, notes, and snippets.

@sheeldotme
Created May 9, 2019 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheeldotme/d65dacf03950a2f808c91d18b4cea85d to your computer and use it in GitHub Desktop.
Save sheeldotme/d65dacf03950a2f808c91d18b4cea85d to your computer and use it in GitHub Desktop.
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