mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
29 lines
503 B
Nix
29 lines
503 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, undmg
|
|
, lib
|
|
, meta
|
|
, pname
|
|
, version
|
|
}:
|
|
stdenv.mkDerivation {
|
|
inherit meta pname version;
|
|
|
|
src = fetchurl {
|
|
url = "https://releases.lmstudio.ai/mac/arm64/${version}/latest/LM-Studio-${version}-arm64.dmg";
|
|
hash = "sha256-zLbkb33Fmz2b+cloEINJybuj+i3ya+EVxb5CPWo/iXk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/Applications
|
|
cp -r *.app $out/Applications
|
|
runHook postInstall
|
|
'';
|
|
}
|
|
|