1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
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 Normal View History

2024-06-21 01:06:20 +01:00
{
stdenvNoCC,
fetchurl,
unzip,
makeWrapper,
pname,
version,
meta,
2024-07-07 21:54:26 +01:00
passthru,
2024-06-21 01:06:20 +01:00
}:
stdenvNoCC.mkDerivation rec {
2024-07-07 21:54:26 +01:00
inherit
pname
version
meta
passthru
;
2024-06-21 01:06:20 +01:00
src = fetchurl {
url = "https://github.com/ThaUnknown/miru/releases/download/v${version}/mac-Miru-${version}-mac.zip";
2024-08-31 11:48:42 +01:00
hash = "sha256-odMJ5OCXDajm4z+oHCqtpew+U73ymghmDa/F019dAcY=";
2024-06-21 01:06:20 +01: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
'';
}