Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

add flake.nix

Hutch14352c3fb6d5
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000000..8a87201f4d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,15 @@
+
+LICENSE STATUS
+
+All rights reserved.
+The contents of this repository are provided for viewing purposes only.
+You may not use, copy, modify, distribute, or create derivative works from this code without explicit written permission from Macro.
+
+PROJECT DIRECTION
+
+We intend to open-source most of the codebase under a copy-left license in the future, with a separate Enterprise Edition (EE) component. We’re actively exploring the best way to do this while preserving a high-quality commercial product and a sustainable ecosystem.
+
+CONTRIBUTIONS
+
+We’re not accepting external contributions yet.
+Feel free to explore the code and follow progress, but please do not submit PRs or attempt to reuse the code at this time.
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000000..661a079b15
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,100 @@
+{
+ "nodes": {
+ "fenix": {
+ "inputs": {
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "rust-analyzer-src": "rust-analyzer-src"
+ },
+ "locked": {
+ "lastModified": 1762584108,
+ "narHash": "sha256-wZUW7dlXMXaRdvNbaADqhF8gg9bAfFiMV+iyFQiDv+Y=",
+ "owner": "nix-community",
+ "repo": "fenix",
+ "rev": "32f3ad3b6c690061173e1ac16708874975ec6056",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "fenix",
+ "type": "github"
+ }
+ },
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1762363567,
+ "narHash": "sha256-YRqMDEtSMbitIMj+JLpheSz0pwEr0Rmy5mC7myl17xs=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "ae814fd3904b621d8ab97418f1d0f2eb0d3716f4",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "fenix": "fenix",
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "rust-analyzer-src": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1762438844,
+ "narHash": "sha256-ApIKJf6CcMsV2nYBXhGF95BmZMO/QXPhgfSnkA/rVUo=",
+ "owner": "rust-lang",
+ "repo": "rust-analyzer",
+ "rev": "4bf516ee5a960c1e2eee9fedd9b1c9e976a19c86",
+ "type": "github"
+ },
+ "original": {
+ "owner": "rust-lang",
+ "ref": "nightly",
+ "repo": "rust-analyzer",
+ "type": "github"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000000..8e6f1bd9e7
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,80 @@
+{
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ flake-utils.url = "github:numtide/flake-utils";
+ fenix.url = "github:nix-community/fenix";
+ fenix.inputs.nixpkgs.follows = "nixpkgs";
+ };
+ outputs =
+ {
+ self,
+ nixpkgs,
+ flake-utils,
+ fenix,
+ }:
+ flake-utils.lib.eachDefaultSystem (
+ system:
+ let
+ pkgs = import nixpkgs {
+ system = system;
+ };
+ packages = with pkgs; [
+ parallel
+ docker-compose
+ cargo-info
+ cargo-udeps
+ cargo-lambda
+ cargo-deny
+ prisma-engines
+ prisma
+ pkg-config
+ just
+ just-lsp
+ taplo
+ go
+ gopls
+ bun
+ yarn
+ sqlx-cli
+ typescript-language-server
+ nodejs_24
+ pulumi
+ pulumiPackages.pulumi-nodejs
+ biome
+ jq
+ stripe-cli
+ (
+ with fenix.packages.${system};
+ combine [
+ complete.rustc
+ complete.rust-src
+ complete.cargo
+ complete.clippy
+ complete.rustfmt
+ complete.rust-analyzer
+ ]
+ )
+ ];
+ libraries = with pkgs; [
+ openssl
+ glib
+ glibc.dev
+ libclang
+ gcc
+ ];
+ in
+ {
+ devShell = pkgs.mkShell {
+ buildInputs = packages ++ libraries;
+ LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath libraries}";
+ PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
+ PRISMA_SCHEMA_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/schema-engine";
+ PRISMA_QUERY_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/query-engine";
+ PRISMA_QUERY_ENGINE_LIBRARY = "${pkgs.prisma-engines}/lib/libquery_engine.node";
+ PRISMA_FMT_BINARY = "${pkgs.prisma-engines}/bin/prisma-fmt";
+ LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
+ BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.glibc.dev}/include -I${pkgs.gcc.cc}/lib/gcc/${pkgs.stdenv.hostPlatform.config}/${pkgs.gcc.version}/include";
+ };
+ }
+ );
+}