uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
35
pkgs/tools/games/minecraft/amidst/default.nix
Normal file
35
pkgs/tools/games/minecraft/amidst/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, jre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "amidst";
|
||||
version = "4.7";
|
||||
|
||||
src = fetchurl { # TODO: Compile from src
|
||||
url = "https://github.com/toolbox4minecraft/amidst/releases/download/v${version}/amidst-v${lib.replaceStrings [ "." ] [ "-" ] version}.jar";
|
||||
sha256 = "sha256-oecRjD7JUuvFym8N/hSE5cbAFQojS6yxOuxpwWRlW9M=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ jre makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,lib/amidst}
|
||||
cp $src $out/lib/amidst/amidst.jar
|
||||
makeWrapper ${jre}/bin/java $out/bin/amidst \
|
||||
--add-flags "-jar $out/lib/amidst/amidst.jar"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/toolbox4minecraft/amidst";
|
||||
description = "Advanced Minecraft Interface and Data/Structure Tracking";
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = [ maintainers.ivar ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
36
pkgs/tools/games/minecraft/fabric-installer/default.nix
Normal file
36
pkgs/tools/games/minecraft/fabric-installer/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, jre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fabric-installer";
|
||||
version = "0.10.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://maven.fabricmc.net/net/fabricmc/fabric-installer/${version}/fabric-installer-${version}.jar";
|
||||
sha256 = "sha256-xjnL1nURAr4z2OZKEqiC/E6+rSvDpxrfGwm/5Bvxxno=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ jre makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,lib/fabric}
|
||||
|
||||
cp $src $out/lib/fabric/fabric-installer.jar
|
||||
makeWrapper ${jre}/bin/java $out/bin/fabric-installer \
|
||||
--add-flags "-jar $out/lib/fabric/fabric-installer.jar"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://fabricmc.net/";
|
||||
description = "A lightweight, experimental modding toolchain for Minecraft";
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.ivar ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
67
pkgs/tools/games/minecraft/optifine/default.nix
Normal file
67
pkgs/tools/games/minecraft/optifine/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ recurseIntoAttrs
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
recurseIntoAttrs rec {
|
||||
optifine-latest = optifine_1_18_1;
|
||||
|
||||
optifine_1_18_1 = callPackage ./generic.nix {
|
||||
version = "1.18.1_HD_U_H4";
|
||||
sha256 = "sha256-MlFoVpshotzegpmYdvaeydivdSAqcCFpHyq+3k2B3Ow=";
|
||||
};
|
||||
|
||||
optifine_1_17_1 = callPackage ./generic.nix {
|
||||
version = "1.17.1_HD_U_H1";
|
||||
sha256 = "sha256-HHt747bIHYY/WNAx19mNgvnLrLCqaKIqwXmmB7A895M=";
|
||||
};
|
||||
|
||||
optifine_1_16_5 = callPackage ./generic.nix {
|
||||
version = "1.16.5_HD_U_G8";
|
||||
sha256 = "sha256-PHa8kO1EvOVnzufCDrLENhkm8jqG5TZ9WW9uYk0LSU8=";
|
||||
};
|
||||
|
||||
optifine_1_15_2 = callPackage ./generic.nix {
|
||||
version = "1.16.5_HD_U_G8";
|
||||
sha256 = "sha256-PHa8kO1EvOVnzufCDrLENhkm8jqG5TZ9WW9uYk0LSU8=";
|
||||
};
|
||||
|
||||
optifine_1_14_4 = callPackage ./generic.nix {
|
||||
version = "1.14.4_HD_U_G5";
|
||||
sha256 = "sha256-I+65vQO6yG4AQ0ZLAfX73ImsFKAQkTyrIOnQHldTibs=";
|
||||
};
|
||||
|
||||
optifine_1_13_2 = callPackage ./generic.nix {
|
||||
version = "1.13.2_HD_U_G5";
|
||||
sha256 = "sha256-sjUQot8fPdbZTiLqt+exbF5T8kI5bLQevu7atW9Xu3E=";
|
||||
};
|
||||
|
||||
optifine_1_12_2 = callPackage ./generic.nix {
|
||||
version = "1.12.2_HD_U_G5";
|
||||
sha256 = "sha256-OwAGeXdx/rl/LQ0pCK58mnjO+y5zCvHC6F0IqDm6Jx4=";
|
||||
};
|
||||
|
||||
optifine_1_11_2 = callPackage ./generic.nix {
|
||||
version = "1.11.2_HD_U_G5";
|
||||
sha256 = "sha256-1sLUBtM5e5LDTUFCRZf9UeH6WOA8zY6TAmB9PCS5iv4=";
|
||||
};
|
||||
|
||||
optifine_1_10 = callPackage ./generic.nix {
|
||||
version = "1.10_HD_U_I5";
|
||||
sha256 = "sha256-oKOsaNFnOKfhWLDDYG/0Z4h/ZCDtyJWS9LXPaKAApc0=";
|
||||
};
|
||||
|
||||
optifine_1_9_4 = callPackage ./generic.nix {
|
||||
version = "1.9.4_HD_U_I5";
|
||||
sha256 = "sha256-t+OxIf0Tl/NZxUTl+LGnWRUhEwZ+vxiZfhclxEAf6yI=";
|
||||
};
|
||||
|
||||
optifine_1_8_9 = callPackage ./generic.nix {
|
||||
version = "1.8.9_HD_U_M5";
|
||||
sha256 = "sha256-Jzl2CnD8pq5cfcgXvMYoPxj1Xjj6I3eNp/OHprckssQ=";
|
||||
};
|
||||
|
||||
optifine_1_7_10 = callPackage ./generic.nix {
|
||||
version = "1.7.10_HD_U_E7";
|
||||
sha256 = "sha256-i82dg94AGgWR9JgQXzafBwxH0skZJ3TVpbafZG5E+rQ=";
|
||||
};
|
||||
}
|
||||
45
pkgs/tools/games/minecraft/optifine/generic.nix
Normal file
45
pkgs/tools/games/minecraft/optifine/generic.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ version
|
||||
, sha256
|
||||
, lib
|
||||
, runCommand
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, jre
|
||||
}:
|
||||
|
||||
let
|
||||
mcVersion = builtins.head (lib.splitString "_" version);
|
||||
in
|
||||
runCommand "optifine-${mcVersion}" {
|
||||
pname = "optifine";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://optifine.net/download?f=OptiFine_${version}.jar";
|
||||
inherit sha256;
|
||||
name = "OptiFine_${version}.jar";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ jre makeWrapper ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://optifine.net/";
|
||||
description = "A Minecraft ${mcVersion} optimization mod";
|
||||
longDescription = ''
|
||||
OptiFine is a Minecraft optimization mod.
|
||||
It allows Minecraft to run faster and look better with full support for HD textures and many configuration options.
|
||||
This is for version ${mcVersion} of Minecraft.
|
||||
'';
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.unfree;
|
||||
maintainers = [ maintainers.ivar ];
|
||||
platforms = platforms.unix;
|
||||
mainProgram = "optifine";
|
||||
};
|
||||
} ''
|
||||
mkdir -p $out/{bin,lib/optifine}
|
||||
cp $src $out/lib/optifine/optifine.jar
|
||||
|
||||
makeWrapper ${jre}/bin/java $out/bin/optifine \
|
||||
--add-flags "-jar $out/lib/optifine/optifine.jar"
|
||||
''
|
||||
38
pkgs/tools/games/minecraft/packwiz/default.nix
Normal file
38
pkgs/tools/games/minecraft/packwiz/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "packwiz";
|
||||
version = "unstable-2022-5-25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "packwiz";
|
||||
repo = "packwiz";
|
||||
rev = "e71b63ea98283c8c1f0e03ee51ae40f452f22a61";
|
||||
sha256 = "sha256-XwGacEVfQAduDCSMQFRw7Xnx4bND2zaV7l27B+2u5xg=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-M9u7N4IrL0B4pPRQwQG5TlMaGT++w3ZKHZ0RdxEHPKk=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd packwiz \
|
||||
--bash <($out/bin/packwiz completion bash) \
|
||||
--fish <($out/bin/packwiz completion fish) \
|
||||
--zsh <($out/bin/packwiz completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command line tool for editing and distributing Minecraft modpacks, using a git-friendly TOML format";
|
||||
homepage = "https://packwiz.infra.link/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ infinidoge ];
|
||||
mainProgram = "packwiz";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue