octopod/default.nix
iko 9309794079
Removed TLS Auth in favour of headers (#54)
* Removed TLS Auth in favour of headers

* chart changes to work with auth header instead of certs

* chart version bump up

* Warnings and formatting

* Removed extra deps

* Split module sources

* Removed extra TLS args

* Slimmed down docker images and added certs to octo cli

* Simplified docker images

* Increased swap

* Added entrypoint to env veriables in docker images

* refactor cli options + get rid of tls options

Co-authored-by: Aleksei Sizov <a.sizov@typeable.io>
Co-authored-by: iko
2021-07-28 14:27:37 +03:00

48 lines
1.4 KiB
Nix

{ sources ? import ./nix/sources.nix
, haskellNix ? import sources.haskellNix { inherit system; }
, pkgs ? import haskellNix.sources.nixpkgs-2105 (haskellNix.nixpkgsArgs // { inherit system; })
, nix-filter ? import sources.nix-filter
, system ? builtins.currentSystem
}:
let
hsPkgs = pkgs.haskell-nix.cabalProject {
src = nix-filter {
root = ./.;
name = "octopod";
include = [
./octopod-backend/octopod-backend.cabal
./octo-cli/octo-cli.cabal
./octopod-api/octopod-api.cabal
./octopod-common/octopod-common.cabal
./octopod-frontend/octopod-frontend.cabal
./cabal.project
];
};
modules = [
{
dontStrip = false;
dontPatchELF = false;
enableDeadCodeElimination = true;
packages.octopod-backend.src = ./octopod-backend;
packages.octo-cli.src = ./octo-cli;
packages.octopod-api.src = ./octopod-api;
packages.octopod-frontend.src = ./octopod-frontend;
packages.octopod-common.src = ./octopod-common;
}
];
index-state = "2021-07-02T00:00:00Z";
compiler-nix-name = "ghc8105";
};
in
hsPkgs // {
octopod-frontend-pretty =
pkgs.runCommand "octopod-frontend-pretty"
{ } ''
mkdir $out
cp ${./octopod-frontend/index.html} $out/index.html
cp ${hsPkgs.projectCross.ghcjs.hsPkgs.octopod-frontend.components.exes.frontend}/bin/frontend.jsexe/all.js $out/all.js
'';
}