Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
995 B
Nix
48 lines
995 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
_7zz,
|
|
undmg,
|
|
}:
|
|
|
|
let
|
|
source = import ./source.nix;
|
|
in
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "chatgpt";
|
|
inherit (source) version;
|
|
|
|
src = fetchurl source.src;
|
|
|
|
nativeBuildInputs = [
|
|
undmg
|
|
];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p "$out/Applications"
|
|
mkdir -p "$out/bin"
|
|
cp -a ChatGPT.app "$out/Applications"
|
|
ln -s "$out/Applications/ChatGPT.app/Contents/MacOS/ChatGPT" "$out/bin/ChatGPT"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = {
|
|
description = "Desktop application for ChatGPT";
|
|
homepage = "https://openai.com/chatgpt/desktop/";
|
|
changelog = "https://help.openai.com/en/articles/9703738-macos-app-release-notes";
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [ wattmto ];
|
|
platforms = lib.platforms.darwin;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
mainProgram = "ChatGPT";
|
|
};
|
|
}
|