2024-06-24 18:47:55 +00:00
|
|
|
{
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchurl,
|
|
|
|
unzip,
|
|
|
|
makeWrapper,
|
|
|
|
|
|
|
|
pname,
|
|
|
|
version,
|
|
|
|
meta,
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru,
|
2024-06-24 18:47:55 +00:00
|
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
2024-09-19 14:19:46 +00:00
|
|
|
inherit
|
|
|
|
pname
|
|
|
|
version
|
|
|
|
meta
|
|
|
|
passthru
|
|
|
|
;
|
2024-06-24 18:47:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ThaUnknown/miru/releases/download/v${version}/mac-Miru-${version}-mac.zip";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-Pqf6lgogk3j6Bi78x6lCVlOjhR8BhoFbhRa7l3YkqP0=";
|
2024-06-24 18:47:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
unzip
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/{bin,Applications}
|
|
|
|
cp -r Miru.app $out/Applications/
|
|
|
|
makeWrapper $out/Applications/Miru.app/Contents/MacOS/Miru $out/bin/miru
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
}
|