-
Notifications
You must be signed in to change notification settings - Fork 1
/
shell.nix
40 lines (33 loc) · 961 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ nixpkgs ? <nixpkgs>, system ? builtins.currentSystem }:
let
nixpkgsLocal = import nixpkgs { inherit system; };
nixpkgsUnstable = with nixpkgsLocal.pkgs; callPackage (stdenv.mkDerivation rec {
name = "nixpkgs-unstable-${version}";
version = "2018-08-10";
src = fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs-channels";
rev = "bf1b50cbc8ffe9747758d089e3148406a7ce5c21";
sha256 = "0clczc8n7415i7pcqs1my8ydf0sijkcwqw6c36dgn998kdrgknh8";
};
dontBuild = true;
preferLocalBuild = true;
installPhase = ''
cp -a . $out
'';
}) { inherit system; };
in with nixpkgsUnstable.pkgs; stdenv.mkDerivation rec {
name = "node-sfnt2woff-zopfli-env";
env = buildEnv { name = name; paths = buildInputs; };
buildInputs = with pkgs; [
nodejs-6_x
python
zlib
pkgconfig
] ++ (with nodePackages_6_x; [
yarn node-gyp
]);
shellHook = ''
echo ✨ environment ready!
'';
}