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
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"
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue