98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
33 lines
646 B
Nix
33 lines
646 B
Nix
{
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
unzip,
|
|
makeWrapper,
|
|
|
|
pname,
|
|
version,
|
|
meta,
|
|
}:
|
|
stdenvNoCC.mkDerivation rec {
|
|
inherit pname version meta;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ThaUnknown/miru/releases/download/v${version}/mac-Miru-${version}-mac.zip";
|
|
hash = "sha256-N4+WDXhu62QUFqdCcPPfYEOd2OImg/Moj+UT0xK2oGE=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
}
|