34 lines
477 B
Nix
34 lines
477 B
Nix
{
|
|
stdenvNoCC,
|
|
unzip,
|
|
makeWrapper,
|
|
|
|
pname,
|
|
version,
|
|
meta,
|
|
src,
|
|
}:
|
|
stdenvNoCC.mkDerivation {
|
|
inherit
|
|
pname
|
|
version
|
|
meta
|
|
src
|
|
;
|
|
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [
|
|
unzip
|
|
makeWrapper
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/{bin,Applications}
|
|
cp -r Upscayl.app $out/Applications/
|
|
makeWrapper $out/Applications/Upscayl.app/Contents/MacOS/Upscayl $out/bin/upscayl
|
|
runHook postInstall
|
|
'';
|
|
}
|