fork/slippi-nix

git clone https://git.julia.blue/fork/slippi-nix

Daniel Flanaganchore: update repository structure to be in line with my other flakes4c9a4e5

remove-trace
850 B41 linesraw
1let
2  # static package defaults
3  defaults = {
4    pname = "Slippi_Netplay_Mainline-x86_64.AppImage";
5    inherit ((import ../hashes.nix).netplay-beta) version hash;
6  };
7in
8{
9  lib,
10  appimageTools,
11  fetchzip,
12  makeWrapper,
13  version ? defaults.version,
14  hash ? defaults.hash,
15  pname ? defaults.pname,
16}:
17let
18  # dynamic package defaults
19  rawZip = fetchzip {
20    inherit hash;
21    url = "https://github.com/project-slippi/dolphin/releases/download/v${version}/Mainline-Slippi-${version}-Linux.zip";
22    stripRoot = false;
23  };
24  src = "${rawZip}/Slippi_Netplay_Mainline-x86_64.AppImage";
25in
26(import ./common.nix) {
27  inherit
28    lib
29    appimageTools
30    makeWrapper
31    version
32    pname
33    src
34    rawZip
35    ;
36  extraInstallCommands = ''
37    wrapProgram "$out/bin/${pname}" \
38      --inherit-argv0 \
39      --set QT_QPA_PLATFORM xcb
40  '';
41}