requireFile-less coopdx
This commit is contained in:
11
coopdx2.nix
11
coopdx2.nix
@@ -12,12 +12,7 @@
|
|||||||
lib,
|
lib,
|
||||||
bash,
|
bash,
|
||||||
python3,
|
python3,
|
||||||
requireFile,
|
sm64baserom,
|
||||||
baseRom ? requireFile {
|
|
||||||
name = "baserom.us.z64";
|
|
||||||
message = "bla";
|
|
||||||
sha256 = "17ce077343c6133f8c9f2d6d6d9a4ab62c8cd2aa57c40aea1f490b4c8bb21d91";
|
|
||||||
},
|
|
||||||
|
|
||||||
enableTextureFix ? true,
|
enableTextureFix ? true,
|
||||||
enableDiscord ? false,
|
enableDiscord ? false,
|
||||||
@@ -75,7 +70,7 @@ stdenv.mkDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
ln -s ${baseRom} baserom.us.z64
|
ln -s ${sm64baserom} baserom.us.z64
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace-fail ' -march=$(TARGET_ARCH) ' ' '
|
--replace-fail ' -march=$(TARGET_ARCH) ' ' '
|
||||||
# workaround a bug in the build
|
# workaround a bug in the build
|
||||||
@@ -93,7 +88,7 @@ stdenv.mkDerivation {
|
|||||||
mkdir -p $share
|
mkdir -p $share
|
||||||
cp $built/${pname} $share/${pname}-unwrapped
|
cp $built/${pname} $share/${pname}-unwrapped
|
||||||
cp -r $built/{dynos,lang,mods,palettes} $share
|
cp -r $built/{dynos,lang,mods,palettes} $share
|
||||||
ln -s ${baseRom} $share/baserom.us.z64
|
ln -s ${sm64baserom} $share/baserom.us.z64
|
||||||
|
|
||||||
${lib.optionalString enableDiscord ''
|
${lib.optionalString enableDiscord ''
|
||||||
cp $built/libdiscord_game_sdk* $share
|
cp $built/libdiscord_game_sdk* $share
|
||||||
|
16
flake.lock
generated
16
flake.lock
generated
@@ -1289,6 +1289,7 @@
|
|||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"nixvim-unstable": "nixvim-unstable",
|
"nixvim-unstable": "nixvim-unstable",
|
||||||
"padtype-unstable": "padtype-unstable",
|
"padtype-unstable": "padtype-unstable",
|
||||||
|
"sm64baserom": "sm64baserom",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"vscode-server": "vscode-server",
|
"vscode-server": "vscode-server",
|
||||||
"vscode-server-unstable": "vscode-server-unstable"
|
"vscode-server-unstable": "vscode-server-unstable"
|
||||||
@@ -1406,6 +1407,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"sm64baserom": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1727217362,
|
||||||
|
"narHash": "sha256-Ws5dVa/7kFnesEkZsRPJmqnYKNlBYm7fx49KgT73bS8=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "aeb2d33ee623ede8c88f0f492c80f437889adfe1",
|
||||||
|
"revCount": 1,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.uninsane.org/shelvacu/sm64baserom.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.uninsane.org/shelvacu/sm64baserom.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@@ -85,6 +85,7 @@
|
|||||||
url = "github:tpwrules/nixos-apple-silicon";
|
url = "github:tpwrules/nixos-apple-silicon";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
sm64baserom.url = "git+https://git.uninsane.org/shelvacu/sm64baserom.git";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
@@ -308,6 +309,7 @@
|
|||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
overlays = [ inputs.sm64baserom.overlays.default ];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user