nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenvNoCC,
3 unzip,
4 makeWrapper,
5
6 pname,
7 version,
8 meta,
9 src,
10}:
11stdenvNoCC.mkDerivation {
12 inherit
13 pname
14 version
15 meta
16 src
17 ;
18
19 sourceRoot = ".";
20
21 nativeBuildInputs = [
22 unzip
23 makeWrapper
24 ];
25
26 installPhase = ''
27 runHook preInstall
28 mkdir -p $out/{bin,Applications}
29 cp -r Upscayl.app $out/Applications/
30 makeWrapper $out/Applications/Upscayl.app/Contents/MacOS/Upscayl $out/bin/upscayl
31 runHook postInstall
32 '';
33}