biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / games / sm64ex / coop.nix
blob742f41cea3615c9b98af53cf763ff3ddf2a7d577
1 { callPackage
2 , fetchFromGitHub
3 , autoPatchelfHook
4 , zlib
5 , stdenvNoCC
6 }:
8 callPackage ./generic.nix {
9   pname = "sm64ex-coop";
10   version = "unstable-2023-02-22";
12   src = fetchFromGitHub {
13     owner = "djoslin0";
14     repo = "sm64ex-coop";
15     rev = "8746a503086793c87860daadfaeaaf0a31b2d6cf";
16     sha256 = "sha256-iwJsq0FN9npxveIoMiB7zL5j1V72IExtEpzGj6lwLXQ=";
17   };
19   extraNativeBuildInputs = [
20     autoPatchelfHook
21   ];
23   extraBuildInputs = [
24     zlib
25   ];
27   postInstall =
28     let
29       sharedLib = stdenvNoCC.hostPlatform.extensions.sharedLibrary;
30     in
31     ''
32       mkdir -p $out/lib
33       cp $src/lib/bass/libbass{,_fx}${sharedLib} $out/lib
34       cp $src/lib/discordsdk/libdiscord_game_sdk${sharedLib} $out/lib
35     '';
37   extraMeta = {
38     homepage = "https://github.com/djoslin0/sm64ex-coop";
39     description = "Super Mario 64 online co-op mod, forked from sm64ex";
40   };