nixpkgs/pkgs/development/web/iojs/default.nix

32 lines
952 B
Nix
Raw Normal View History

2015-04-09 19:57:37 +02:00
{ stdenv, fetchurl, python, utillinux, openssl, http-parser, zlib, libuv }:
2015-02-08 18:35:15 +01:00
let
2015-04-09 19:57:37 +02:00
version = "1.6.4";
2015-02-08 18:35:15 +01:00
inherit (stdenv.lib) optional maintainers licenses platforms;
in stdenv.mkDerivation {
name = "iojs-${version}";
src = fetchurl {
2015-04-09 19:57:37 +02:00
url = "https://iojs.org/dist/v${version}/iojs-v${version}.tar.gz";
sha256 = "1qzvf7g457dppzxn23wppjcm09vh1n6bhsvz5szhwgjvl0iv2pc7";
2015-02-08 18:35:15 +01:00
};
prePatch = ''
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i configure
'';
2015-02-22 12:41:33 +01:00
configureFlags = [ "--shared-openssl" "--shared-http-parser" "--shared-zlib" "--shared-libuv" ];
2015-02-22 12:41:33 +01:00
buildInputs = [ python openssl http-parser zlib libuv ] ++ (optional stdenv.isLinux utillinux);
2015-02-08 18:35:15 +01:00
setupHook = ../nodejs/setup-hook.sh;
passthru.interpreterName = "iojs";
2015-02-08 18:35:15 +01:00
meta = {
description = "A friendly fork of Node.js with an open governance model";
homepage = https://iojs.org/;
license = licenses.mit;
platforms = platforms.linux;
};
}