mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
28 lines
495 B
Nix
28 lines
495 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, undmg
|
|
, meta
|
|
, pname
|
|
, version
|
|
}:
|
|
stdenv.mkDerivation {
|
|
inherit meta pname version;
|
|
|
|
src = fetchurl {
|
|
url = "https://releases.lmstudio.ai/darwin/arm64/${version}/LM%20Studio-${version}-arm64.dmg";
|
|
hash = "sha256-KC4nXhMkrRDRtLPnpD5UTyKzQ+xH9jhZZHnjk9gDVfo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/Applications
|
|
cp -r *.app $out/Applications
|
|
runHook postInstall
|
|
'';
|
|
}
|
|
|