nixpkgs/pkgs/applications/networking/cluster/spacegun/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
937 B
Nix
Raw Normal View History

{ pkgs, fetchFromGitHub, nodejs, stdenv, lib, ... }:
2019-10-06 11:43:27 +00:00
let
src = fetchFromGitHub {
owner = "dvallin";
repo = "spacegun";
rev = "v0.3.3";
sha256 = "0cd9yzms44dj9ix8lrhbkby5zsyb8wambs24j6c3ibr67sggr6sq";
};
2019-10-06 11:43:27 +00:00
nodePackages = import ./node-composition.nix {
inherit pkgs nodejs;
inherit (stdenv.hostPlatform) system;
};
in
nodePackages.package.override {
inherit src;
nativeBuildInputs = [ pkgs.makeWrapper pkgs.nodePackages.node-gyp-build ];
2019-10-06 11:43:27 +00:00
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; {
broken = stdenv.isDarwin;
2019-10-06 11:43:27 +00:00
description = "Version controlled multi-cluster deployment manager for kubernetes";
maintainers = with maintainers; [ ];
2019-10-06 11:43:27 +00:00
license = licenses.mit;
};
}