spacegun: init at 0.3.3
This commit is contained in:
parent
f523177869
commit
10f8ff8b6e
6 changed files with 11479 additions and 0 deletions
27
pkgs/applications/networking/cluster/spacegun/default.nix
Normal file
27
pkgs/applications/networking/cluster/spacegun/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, nodejs, stdenv, lib, ... }:
|
||||
|
||||
let
|
||||
|
||||
packageName = with lib; concatStrings (map (entry: (concatStrings (mapAttrsToList (key: value: "${key}-${value}") entry))) (importJSON ./package.json));
|
||||
|
||||
nodePackages = import ./node-composition.nix {
|
||||
inherit pkgs nodejs;
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
};
|
||||
in
|
||||
nodePackages."${packageName}".override {
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
# Patch shebangs in node_modules, otherwise the webpack build fails with interpreter problems
|
||||
patchShebangs --build "$out/lib/node_modules/spacegun/node_modules/"
|
||||
# compile Typescript sources
|
||||
npm run build
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Version controlled multi-cluster deployment manager for kubernetes";
|
||||
maintainers = with maintainers; [ kampka ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p nodePackages.node2nix
|
||||
|
||||
node2nix \
|
||||
--nodejs-10 \
|
||||
--node-env ../../../../development/node-packages/node-env.nix \
|
||||
--development \
|
||||
--input package.json \
|
||||
--output node-packages.nix \
|
||||
--composition node-composition.nix
|
|
@ -0,0 +1,17 @@
|
|||
# This file has been generated by node2nix 1.7.0. Do not edit!
|
||||
|
||||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-10_x"}:
|
||||
|
||||
let
|
||||
nodeEnv = import ../../../../development/node-packages/node-env.nix {
|
||||
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
|
||||
inherit nodejs;
|
||||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
||||
};
|
||||
in
|
||||
import ./node-packages.nix {
|
||||
inherit (pkgs) fetchurl fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
11420
pkgs/applications/networking/cluster/spacegun/node-packages.nix
generated
Normal file
11420
pkgs/applications/networking/cluster/spacegun/node-packages.nix
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,3 @@
|
|||
[
|
||||
{ "spacegun": "git+https://github.com/dvallin/spacegun.git#v0.3.3" }
|
||||
]
|
|
@ -19781,6 +19781,8 @@ in
|
|||
|
||||
softmaker-office = callPackage ../applications/office/softmaker/softmaker_office.nix {};
|
||||
|
||||
spacegun = callPackage ../applications/networking/cluster/spacegun {};
|
||||
|
||||
stride = callPackage ../applications/networking/instant-messengers/stride { };
|
||||
|
||||
sudolikeaboss = callPackage ../tools/security/sudolikeaboss { };
|
||||
|
|
Loading…
Reference in a new issue