2024-05-15 15:35:15 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, undmg
|
|
|
|
, lib
|
|
|
|
, meta
|
|
|
|
, pname
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit meta pname version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-05 15:53:02 +00:00
|
|
|
url = "https://releases.lmstudio.ai/mac/arm64/${version}/latest/LM-Studio-${version}-arm64.dmg";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-byS0LNJQjs/+sf2anhTAdsXUWad9HujxmLx5uEfdlo8=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r *.app $out/Applications
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
|