mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
bf7ad2d84f
Mostly scripted substitutions with a couple of subjective enhancements.
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ stdenv, fetchgit, callPackage, python, utillinux }:
|
|
|
|
with stdenv.lib;
|
|
|
|
let
|
|
nodePackages = callPackage (import ../../../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 = "A web-interface for hipache-proxy";
|
|
license = licenses.mit;
|
|
homepage = https://github.com/emblica/airfield;
|
|
maintainers = with maintainers; [offline];
|
|
platforms = with platforms; linux;
|
|
broken = true;
|
|
};
|
|
}
|