add airfield, a web-interface for hipache-proxy
This commit is contained in:
parent
5c834022e8
commit
be42f49499
38
pkgs/tools/networking/airfield/default.nix
Normal file
38
pkgs/tools/networking/airfield/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ stdenv, fetchgit, callPackage, python, utillinux }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
nodePackages = callPackage (import <nixpkgs/pkgs/top-level/node-packages.nix>) {
|
||||||
|
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 = {
|
||||||
|
description = "Airfield is a web-interface for hipache-proxy";
|
||||||
|
license = licenses.mit;
|
||||||
|
homepage = https://github.com/emblica/airfield;
|
||||||
|
maintainers = with maintainers; [offline];
|
||||||
|
platforms = with platforms; linux;
|
||||||
|
};
|
||||||
|
}
|
1495
pkgs/tools/networking/airfield/package.nix
Normal file
1495
pkgs/tools/networking/airfield/package.nix
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user