Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
refactor: standardize fractal I/II
Browse files Browse the repository at this point in the history
the motivation for standardizing fractal is to reduce boilerplate
increase mindshare and lower the effort to contribute for std users.

std users will likely become very active users of and contributors
to fractal in the near future.
  • Loading branch information
blaggacao committed Dec 11, 2022
1 parent 15e9b7e commit 77389b5
Show file tree
Hide file tree
Showing 24 changed files with 308 additions and 56 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 42 additions & 0 deletions app/packages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
inputs,
cell,
}: rec {
default = fractal;
fractal = let
inherit
(inputs.nixpkgs)
lib
buildGoModule
makeWrapper
kubernetes-helm
kustomize
;
in
buildGoModule rec {
pname = "fractal";
version = "1.0.0";
src = ./fractal;

buildInputs = [makeWrapper];
vendorSha256 = "sha256-BIqJ1PRJjIy/Z7ILr4mA6dE9IqBQabQt/YHgSgajRhw=";

postInstall = ''
mv "$out/bin/app" "$out/bin/fractal"
'';

postFixup = let
runtimeDeps = [kubernetes-helm kustomize];
in ''
wrapProgram "$out/bin/fractal" \
--prefix PATH ":" ${lib.makeBinPath runtimeDeps}
'';

meta = with lib; {
description = "Nix-based framework for building Kubernetes resources";
homepage = "https://github.com/ArctarusLimited/Fractal";
license = licenses.mit;
maintainers = [maintainers.citadelcore];
};
};
}
243 changes: 233 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 77389b5

Please sign in to comment.