Files
nixpkgs/pkgs/default.nix
T
m3ta-chiron ebd79d5ca5 feat(pkgs): add photocraft 0.7.0
Native buildRustPackage for PhotoCraft, the open-source clean-room
Photoshop reimplementation in pure Rust
(https://github.com/storytold/photocraft).

- builds desktop app + photocraft-cli (convert/batch/MCP) from the
  v0.7.0 release tag
- heif feature enabled for parity with official release builds
  (pure-Rust heic-rs, no native C deps)
- zero buildInputs: the workspace has no native *-sys crates; all
  windowing/graphics/D-Bus access is dlopen'd at runtime and provided
  via LD_LIBRARY_PATH (neovide pattern), incl. dbus.lib so rfd's
  xdg-desktop-portal file dialogs work instead of the zenity fallback
- installs upstream .desktop, hicolor icons (16-512 + svg), AppStream
  metainfo (version/date substituted) and MIME registrations
- passthru.updateScript = nix-update-script; verified with
  'nix-update -F photocraft' (handles version + src hash + cargoHash)

GPU verified on RX 7900 XTX / Wayland after the flake input update.
2026-10-11 14:01:12 +02:00

69 lines
3.3 KiB
Nix

# m3ta-nixpkgs package registry
#
# Flake inputs used:
# inputs.basecamp → basecamp (pass-through)
# inputs.opencode → opencode-desktop (Electron desktop app, pure pass-through)
# inputs.agents → not used directly here (used by lib/)
{
pkgs,
inputs,
...
}: let
system = pkgs.stdenv.hostPlatform.system;
in {
# ── Local packages ────────────────────────────────────────────────
# Standard packages built from source in ./<name>/default.nix.
# No flake inputs required.
sidecar = pkgs.callPackage ./sidecar {};
td = pkgs.callPackage ./td {};
hyprpaper-random = pkgs.callPackage ./hyprpaper-random {};
launch-webapp = pkgs.callPackage ./launch-webapp {};
mem0 = pkgs.callPackage ./mem0 {};
msty-studio = pkgs.callPackage ./msty-studio {};
photocraft = pkgs.callPackage ./photocraft {};
pomodoro-timer = pkgs.callPackage ./pomodoro-timer {};
rofi-project-opener = pkgs.callPackage ./rofi-project-opener {};
stt-ptt = pkgs.callPackage ./stt-ptt {};
tuxedo-backlight = pkgs.callPackage ./tuxedo-backlight {};
kestractl = pkgs.callPackage ./kestractl {};
openshell = pkgs.callPackage ./openshell {};
openwork = pkgs.callPackage ./openwork {};
zellij-ps = pkgs.callPackage ./zellij-ps {};
vibetyper = pkgs.callPackage ./vibetyper {};
talk = pkgs.callPackage ./talk {};
crunch = pkgs.callPackage ./crunch {};
agent-lib = pkgs.callPackage ./agent-lib {};
# ── Pass-through packages ──────────────────────────────────────────
# Imported directly from flake inputs. No local modifications.
# basecamp: tracked at github:basecamp/basecamp-cli/v0.8.0-rc.1.
# The rc.1 tag ships a stale nix/package.nix:
# - vendorHash does not match the tagged go.sum (buildGoModule FOD fails)
# - `version` was not bumped and still reads "0.7.2"
# We override both here so the input builds and reports the rc.1 version.
# When upstream fixes package.nix (expected for the 0.8.0 final), drop this
# override back to the plain pass-through.
# basecamp = inputs.basecamp.packages.${system}.default.overrideAttrs (_: {
# version = "0.8.0-rc.1";
# vendorHash = "sha256-m1UF/Ga9C9GJF0JtZMXFOX88chb+f279/aoAaiwfxvg=";
# # src stays the flake input (lib.cleanSource ./.. pinned by flake.lock to
# # rc.1) — only the version label that upstream forgot to bump is corrected.
# __intentionallyOverridingVersion = true;
# });
basecamp = inputs.basecamp.packages.${system}.default;
opencode-desktop = inputs.opencode.packages.${system}.opencode-desktop;
# buzz: Block's "hive mind" desktop app. Consumed from mulatta/buzz.nix
# because the upstream AppImage lacks the sidecars + Tauri GStreamer
# integration needed to actually run. Exposed under both `buzz-desktop`
# (mulatta's name) and `buzz` (the short alias). Builds entirely from
# source — no third-party binary cache. First build is slow (Rust + Tauri
# + sherpa-onnx); subsequent builds are cached in the local nix store.
# Note: mulatta only publishes packages for x86_64-linux, aarch64-linux,
# aarch64-darwin — x86_64-darwin will throw at build time.
buzz-desktop = inputs.buzz.packages.${system}.buzz-desktop;
buzz = inputs.buzz.packages.${system}.buzz-desktop;
}