Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
740 B
Nix
39 lines
740 B
Nix
let
|
|
inherit (pkgs)
|
|
writeScript
|
|
stdenv
|
|
;
|
|
|
|
nixpkgs = <nixpkgs>;
|
|
config = {};
|
|
pkgs = import nixpkgs { inherit config; };
|
|
|
|
shellWrapper = writeScript "shell-wrapper" ''
|
|
#! ${stdenv.shell}
|
|
set -e
|
|
|
|
exec -a shell ${pkgs.fish}/bin/fish --login --interactive "$@"
|
|
'';
|
|
in stdenv.mkDerivation rec {
|
|
name = "nix-shell";
|
|
buildInputs = with pkgs; [
|
|
glibcLocales bashInteractive man
|
|
nix cacert curl utillinux coreutils
|
|
git jq yq-go tmux findutils gnumake
|
|
|
|
go gopls golangci-lint
|
|
];
|
|
shellHook = ''
|
|
export root=$(pwd)
|
|
|
|
export LANG="en_US.UTF-8"
|
|
export NIX_PATH="nixpkgs=${nixpkgs}"
|
|
|
|
if [ ! -z "$PS1" ]
|
|
then
|
|
export SHELL="${shellWrapper}"
|
|
exec "$SHELL"
|
|
fi
|
|
'';
|
|
}
|