12 url = "https://github.com/pinokiocomputer/pinokio/releases/download/${version}/Pinokio-${version}.dmg";
13 hash = "sha256-Il5zaVWu4icSsKmMjU9u1/Mih34fd+xNpF1nkFAFFGo=";
16 url = "https://github.com/pinokiocomputer/pinokio/releases/download/${version}/Pinokio-${version}.AppImage";
17 hash = "sha256-/E/IAOUgxH9RWpE2/vLlQy92LOgwpHF79K/1XEtSpXI=";
19 }.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");
21 appimageContents = appimageTools.extractType2 { inherit pname version src; };
24 homepage = "https://pinokio.computer";
25 description = "Browser to install, run, and programmatically control ANY application automatically";
26 license = lib.licenses.mit;
27 maintainers = with lib.maintainers; [ ByteSudoer ];
28 platforms = [ "x86_64-darwin" "x86_64-linux" ];
29 mainProgram = "pinokio";
30 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
34 if stdenv.hostPlatform.isDarwin then
37 inherit pname version src meta;
41 nativeBuildInputs = with pkgs; [ undmg ];
45 mkdir -p "$out/Applications"
46 mv Pinokio.app $out/Applications/
51 appimageTools.wrapType2 {
52 inherit pname version src meta;
54 extraInstallCommands = ''
55 mkdir -p $out/share/pinokio
56 cp -a ${appimageContents}/{locales,resources} $out/share/pinokio
57 cp -a ${appimageContents}/usr/share/icons $out/share/
58 install -Dm 444 ${appimageContents}/pinokio.desktop -t $out/share/applications