45c8bc03e8
Refactor so `src` is a direct `fetchgit` (instead of a wrapper drv), and move the package.json engine-strip into a `frontendSrc` derivation that only fetchPnpmDeps sees. nix-update needs to introspect `src.url` and `src.rev`; the previous wrapper hid them. Expose `frontend.pnpmDeps` via passthru so nix-update finds the third hash. Now `just gitea-update` does the full cycle: 1. git ls-remote → latest commit on feat/projects-api 2. set src.hash / pnpmDeps.hash / goModules.vendorHash to fakeHash 3. nix-build each to capture real hashes 4. nom build the package for final verification nix-update rewrites version to nixpkgs `<tag>-unstable-<date>` style. Lose the descriptive "-projects-api" suffix in the version, but pname is unchanged so store paths still read `gitea-projects-api-*`.
51 lines
2.1 KiB
Makefile
51 lines
2.1 KiB
Makefile
default:
|
|
@just --list
|
|
|
|
# ── Antigravity ────────────────────────────────────────────
|
|
|
|
# Run antigravity (FHS-wrapped) from the attic cache
|
|
antigravity-run:
|
|
nix run \
|
|
--extra-substituters "https://nix-cache-custom.oleks.space/attic-infra-cache-k3s-1" \
|
|
--extra-trusted-public-keys "attic-infra-cache-k3s-1:qYSNK3DmttQXCFqn1t50qoWGtQNPRFWq9mgQjD05DeU=" \
|
|
git+https://git.oleks.space/oleks/flake-hub#google-antigravity
|
|
|
|
# Run antigravity (non-FHS variant) from the attic cache
|
|
antigravity-run-no-fhs:
|
|
nix run \
|
|
--extra-substituters "https://nix-cache-custom.oleks.space/attic-infra-cache-k3s-1" \
|
|
--extra-trusted-public-keys "attic-infra-cache-k3s-1:qYSNK3DmttQXCFqn1t50qoWGtQNPRFWq9mgQjD05DeU=" \
|
|
git+https://git.oleks.space/oleks/flake-hub#google-antigravity-no-fhs
|
|
|
|
# Build antigravity (FHS-wrapped)
|
|
antigravity-build:
|
|
nix build .#google-antigravity --print-build-logs
|
|
|
|
# Build antigravity (non-FHS variant)
|
|
antigravity-build-no-fhs:
|
|
nix build .#google-antigravity-no-fhs --print-build-logs
|
|
|
|
# Pull the latest jacopone/antigravity-nix pin
|
|
antigravity-update:
|
|
nix flake update antigravity-nix
|
|
|
|
# ── gitea-projects-api ─────────────────────────────────────
|
|
|
|
# Build the gitea fork (compiles Go 1.26.3 first time; ~5-8 min cold)
|
|
gitea-build:
|
|
nix build .#gitea-projects-api --print-build-logs
|
|
|
|
# Refresh gitea-projects-api: tracks feat/projects-api tip, updates rev + src/vendor/pnpmDeps hashes + version date
|
|
gitea-update:
|
|
nix run nixpkgs#nix-update -- \
|
|
--flake gitea-projects-api \
|
|
--version=branch=feat/projects-api \
|
|
--build
|
|
|
|
# Run gitea from the attic-cached build (no local recompile)
|
|
gitea-run:
|
|
nix run \
|
|
--extra-substituters "https://nix-cache-custom.oleks.space/attic-infra-cache-k3s-1" \
|
|
--extra-trusted-public-keys "attic-infra-cache-k3s-1:qYSNK3DmttQXCFqn1t50qoWGtQNPRFWq9mgQjD05DeU=" \
|
|
git+https://git.oleks.space/oleks/flake-hub#gitea-projects-api -- --help
|