2014-09-21 01:42:15 +02:00
|
|
|
{ stdenv, fetchgit, callPackage, python, utillinux }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
2014-09-23 15:48:15 +02:00
|
|
|
nodePackages = callPackage (import ../../../top-level/node-packages.nix) {
|
2014-09-21 01:42:15 +02:00
|
|
|
neededNatives = [python] ++ optional (stdenv.isLinux) utillinux;
|
|
|
|
self = nodePackages;
|
|
|
|
generated = ./package.nix;
|
|
|
|
};
|
|
|
|
|
|
|
|
in nodePackages.buildNodePackage rec {
|
|
|
|
name = "airfield-${version}";
|
|
|
|
version = "5ae816562a";
|
|
|
|
|
|
|
|
src = [(fetchgit {
|
|
|
|
url = https://github.com/emblica/airfield.git;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0rv05pq0xdm0d977dc3hg6dam78acymzrdvkxs8ga8xj4vfs5npk";
|
|
|
|
})];
|
|
|
|
|
|
|
|
deps = (filter (v: nixType v == "derivation") (attrValues nodePackages));
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace node_modules/Airfield/airfield.js \
|
|
|
|
--replace "'./settings'" "process.env.NODE_CONFIG"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.names = ["Airfield"];
|
|
|
|
|
|
|
|
meta = {
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "A web-interface for hipache-proxy";
|
2014-09-21 01:42:15 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://github.com/emblica/airfield;
|
|
|
|
maintainers = with maintainers; [offline];
|
|
|
|
platforms = with platforms; linux;
|
2015-02-20 14:46:15 +01:00
|
|
|
broken = true;
|
2014-09-21 01:42:15 +02:00
|
|
|
};
|
|
|
|
}
|