forked from mirrors/nixpkgs
sm64ex-coop: 0.pre+date=2022-05-14 -> 0.pre+date=2022-08-05, cleanup
This commit is contained in:
parent
64a5d422d4
commit
9aa9450e4c
41
pkgs/games/sm64ex/coop.nix
Normal file
41
pkgs/games/sm64ex/coop.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ callPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, autoPatchelfHook
|
||||||
|
, zlib
|
||||||
|
, stdenvNoCC
|
||||||
|
}:
|
||||||
|
|
||||||
|
callPackage ./generic.nix {
|
||||||
|
pname = "sm64ex-coop";
|
||||||
|
version = "0.pre+date=2022-08-05";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "djoslin0";
|
||||||
|
repo = "sm64ex-coop";
|
||||||
|
rev = "68634493de4cdd9db263e0f4f0b9b6772a60d30a";
|
||||||
|
sha256 = "sha256-3Ve93WGyBd8SAA0TBrpIrhj+ernjn1q7qXSi9mp36cQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraNativeBuildInputs = [
|
||||||
|
autoPatchelfHook
|
||||||
|
];
|
||||||
|
|
||||||
|
extraBuildInputs = [
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall =
|
||||||
|
let
|
||||||
|
sharedLib = stdenvNoCC.hostPlatform.extensions.sharedLibrary;
|
||||||
|
in
|
||||||
|
''
|
||||||
|
mkdir -p $out/lib
|
||||||
|
cp $src/lib/bass/libbass{,_fx}${sharedLib} $out/lib
|
||||||
|
cp $src/lib/discordsdk/libdiscord_game_sdk${sharedLib} $out/lib
|
||||||
|
'';
|
||||||
|
|
||||||
|
extraMeta = {
|
||||||
|
homepage = "https://github.com/djoslin0/sm64ex-coop";
|
||||||
|
description = "Super Mario 64 online co-op mod, forked from sm64ex";
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,55 +1,9 @@
|
||||||
{ lib
|
{ callPackage
|
||||||
, stdenv
|
|
||||||
, fetchFromGitHub
|
|
||||||
, callPackage
|
|
||||||
, autoPatchelfHook
|
|
||||||
, branch
|
, branch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
sm64ex = callPackage ./generic.nix {
|
sm64ex = callPackage ./sm64ex.nix { };
|
||||||
pname = "sm64ex";
|
|
||||||
version = "0.pre+date=2021-11-30";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
sm64ex-coop = callPackage ./coop.nix { };
|
||||||
owner = "sm64pc";
|
|
||||||
repo = "sm64ex";
|
|
||||||
rev = "db9a6345baa5acb41f9d77c480510442cab26025";
|
|
||||||
sha256 = "sha256-q7JWDvNeNrDpcKVtIGqB1k7I0FveYwrfqu7ZZK7T8F8=";
|
|
||||||
};
|
|
||||||
|
|
||||||
extraMeta = {
|
|
||||||
homepage = "https://github.com/sm64pc/sm64ex";
|
|
||||||
description = "Super Mario 64 port based off of decompilation";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sm64ex-coop = callPackage ./generic.nix {
|
|
||||||
pname = "sm64ex-coop";
|
|
||||||
version = "0.pre+date=2022-05-14";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "djoslin0";
|
|
||||||
repo = "sm64ex-coop";
|
|
||||||
rev = "8200b175607fe2939f067d496627c202a15fe24c";
|
|
||||||
sha256 = "sha256-c1ZmMBtvYYcaJ/WxkZBVvNGVCeSXfm8NKe/BiAIJtks=";
|
|
||||||
};
|
|
||||||
|
|
||||||
extraNativeBuildInputs = [
|
|
||||||
autoPatchelfHook
|
|
||||||
];
|
|
||||||
|
|
||||||
postInstall = let
|
|
||||||
sharedLib = stdenv.hostPlatform.extensions.sharedLibrary;
|
|
||||||
in ''
|
|
||||||
mkdir -p $out/lib
|
|
||||||
cp $src/lib/bass/libbass{,_fx}${sharedLib} $out/lib
|
|
||||||
cp $src/lib/discordsdk/libdiscord_game_sdk${sharedLib} $out/lib
|
|
||||||
'';
|
|
||||||
|
|
||||||
extraMeta = {
|
|
||||||
homepage = "https://github.com/djoslin0/sm64ex-coop";
|
|
||||||
description = "Super Mario 64 online co-op mod, forked from sm64ex";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}.${branch}
|
}.${branch}
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
, version
|
, version
|
||||||
, src
|
, src
|
||||||
, extraNativeBuildInputs ? [ ]
|
, extraNativeBuildInputs ? [ ]
|
||||||
, extraMeta ? {}
|
, extraBuildInputs ? [ ]
|
||||||
|
, extraMeta ? { }
|
||||||
, compileFlags ? [ ]
|
, compileFlags ? [ ]
|
||||||
, postInstall ? ""
|
, postInstall ? ""
|
||||||
, region ? "us"
|
, region ? "us"
|
||||||
|
@ -44,7 +45,7 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
audiofile
|
audiofile
|
||||||
SDL2
|
SDL2
|
||||||
];
|
] ++ extraBuildInputs;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
|
21
pkgs/games/sm64ex/sm64ex.nix
Normal file
21
pkgs/games/sm64ex/sm64ex.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ callPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
callPackage ./generic.nix {
|
||||||
|
pname = "sm64ex";
|
||||||
|
version = "0.pre+date=2021-11-30";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "sm64pc";
|
||||||
|
repo = "sm64ex";
|
||||||
|
rev = "db9a6345baa5acb41f9d77c480510442cab26025";
|
||||||
|
sha256 = "sha256-q7JWDvNeNrDpcKVtIGqB1k7I0FveYwrfqu7ZZK7T8F8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraMeta = {
|
||||||
|
homepage = "https://github.com/sm64pc/sm64ex";
|
||||||
|
description = "Super Mario 64 port based off of decompilation";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue