24 lines
649 B
Nix
24 lines
649 B
Nix
{ lib, stdenv, symlinkJoin, makeWrapper, inputs ? null, }:
|
|
let
|
|
opencode-desktop =
|
|
inputs.opencode.packages.${stdenv.hostPlatform.system}.desktop;
|
|
in symlinkJoin {
|
|
name = "opencode-desktop";
|
|
paths = [ opencode-desktop ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/opencode-desktop \
|
|
--run 'if [[ "$NIXOS_OZONE_WL" == "1" ]]; then export OC_ALLOW_WAYLAND=1; fi'
|
|
'';
|
|
|
|
meta = {
|
|
description = "OpenCode Desktop App with Wayland support";
|
|
homepage = "https://opencode.ai";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "opencode-desktop";
|
|
};
|
|
}
|