83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
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-OakGB5Fz1Tlxa/Uu7xHlKoEF9VRfWFQ9CjsR0eCRyQw=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
}
|