nixpkgs/pkgs/by-name/mi/miru/darwin.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
688 B
Nix
Raw Permalink Normal View History

2024-06-21 00:06:20 +00:00
{
stdenvNoCC,
fetchurl,
unzip,
makeWrapper,
pname,
version,
meta,
2024-07-07 20:54:26 +00:00
passthru,
2024-06-21 00:06:20 +00:00
}:
stdenvNoCC.mkDerivation rec {
2024-07-07 20:54:26 +00:00
inherit
pname
version
meta
passthru
;
2024-06-21 00:06:20 +00:00
src = fetchurl {
url = "https://github.com/ThaUnknown/miru/releases/download/v${version}/mac-Miru-${version}-mac.zip";
2024-11-12 09:10:51 +00:00
hash = "sha256-GTw5RislcL5s6gwUeCmLglXt/BZEpq3aau/ij1E7kso=";
2024-06-21 00:06:20 +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
'';
}