Merge pull request #12997 from ryantm/minecraft
minecraft: add desktop entry; add ryantm as maintainer
This commit is contained in:
commit
cf73c7a91c
|
@ -278,6 +278,7 @@
|
|||
rushmorem = "Rushmore Mushambi <rushmore@webenchanter.com>";
|
||||
rvl = "Rodney Lorrimar <dev+nix@rodney.id.au>";
|
||||
rvlander = "Gaëtan André <rvlander@gaetanandre.eu>";
|
||||
ryantm = "Ryan Mulligan <ryan@ryantm.com>";
|
||||
rycee = "Robert Helgesson <robert@rycee.net>";
|
||||
samuelrivas = "Samuel Rivas <samuelrivas@gmail.com>";
|
||||
sander = "Sander van der Burg <s.vanderburg@tudelft.nl>";
|
||||
|
|
|
@ -1,10 +1,27 @@
|
|||
{ stdenv, fetchurl, jre, libX11, libXext, libXcursor, libXrandr, libXxf86vm
|
||||
{ stdenv, fetchurl, makeDesktopItem
|
||||
, jre, libX11, libXext, libXcursor, libXrandr, libXxf86vm
|
||||
, mesa, openal
|
||||
, useAlsa ? false, alsaOss ? null }:
|
||||
|
||||
assert useAlsa -> alsaOss != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
let
|
||||
icon = fetchurl {
|
||||
url = "https://hydra-media.cursecdn.com/minecraft.gamepedia.com/c/c5/Grass.png";
|
||||
sha256 = "438c0f63e379e92af1b5b2e06cc5e3365ee272810af65ebc102304bce4fa8c4b";
|
||||
};
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "minecraft";
|
||||
exec = "minecraft";
|
||||
icon = "${icon}";
|
||||
comment = "A sandbox-building game";
|
||||
desktopName = "Minecraft";
|
||||
genericName = "minecraft";
|
||||
categories = "Game;";
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
name = "minecraft-2015.07.24";
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -29,12 +46,15 @@ stdenv.mkDerivation {
|
|||
EOF
|
||||
|
||||
chmod +x $out/bin/minecraft
|
||||
|
||||
mkdir -p $out/share/applications
|
||||
ln -s ${desktopItem}/share/applications/* $out/share/applications/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A sandbox-building game";
|
||||
homepage = http://www.minecraft.net;
|
||||
maintainers = [ stdenv.lib.maintainers.page ];
|
||||
maintainers = with stdenv.lib.maintainers; [ page ryantm ];
|
||||
license = stdenv.lib.licenses.unfreeRedistributable;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue