mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
40 lines
688 B
Nix
40 lines
688 B
Nix
{
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
unzip,
|
|
makeWrapper,
|
|
|
|
pname,
|
|
version,
|
|
meta,
|
|
passthru,
|
|
}:
|
|
stdenvNoCC.mkDerivation rec {
|
|
inherit
|
|
pname
|
|
version
|
|
meta
|
|
passthru
|
|
;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ThaUnknown/miru/releases/download/v${version}/mac-Miru-${version}-mac.zip";
|
|
hash = "sha256-GTw5RislcL5s6gwUeCmLglXt/BZEpq3aau/ij1E7kso=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
}
|