forked from mirrors/nixpkgs
cubiomes-viewer: init at 1.12.1
This commit is contained in:
parent
a13acc0422
commit
66370f4f12
70
pkgs/applications/misc/cubiomes-viewer/default.nix
Normal file
70
pkgs/applications/misc/cubiomes-viewer/default.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, qtbase
|
||||
, qmake
|
||||
, wrapQtAppsHook
|
||||
, copyDesktopItems
|
||||
, makeDesktopItem
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cubiomes-viewer";
|
||||
version = "1.12.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Cubitect";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-F0c6gMQKu35iBNRw+wpoxSUOhRUbPRKIXSNDDNZsfPE=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
wrapQtAppsHook
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
desktopItems = [ (makeDesktopItem {
|
||||
name = pname;
|
||||
desktopName = "Cubiomes Viewer";
|
||||
exec = pname;
|
||||
icon = pname;
|
||||
categories = "Game";
|
||||
comment = meta.description;
|
||||
}) ];
|
||||
|
||||
preBuild = ''
|
||||
# QMAKE_PRE_LINK is not executed (I dont know why)
|
||||
make -C ./cubiomes libcubiomes CFLAGS="-DSTRUCT_CONFIG_OVERRIDE=1" all
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp cubiomes-viewer $out/bin
|
||||
|
||||
mkdir -p $out/share/pixmaps
|
||||
cp icons/map.png $out/share/pixmaps/cubiomes-viewer.png
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Cubitect/cubiomes-viewer";
|
||||
description = "A graphical Minecraft seed finder and map viewer";
|
||||
longDescription = ''
|
||||
Cubiomes Viewer provides a graphical interface for the efficient and flexible seed-finding
|
||||
utilities provided by cubiomes and a map viewer for the Minecraft biomes and structure generation.
|
||||
'';
|
||||
platforms = platforms.all;
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ hqurve ];
|
||||
};
|
||||
}
|
|
@ -14440,6 +14440,8 @@ with pkgs;
|
|||
|
||||
ctodo = callPackage ../applications/misc/ctodo { };
|
||||
|
||||
cubiomes-viewer = libsForQt5.callPackage ../applications/misc/cubiomes-viewer { };
|
||||
|
||||
ctmg = callPackage ../tools/security/ctmg { };
|
||||
|
||||
cmake_2_8 = callPackage ../development/tools/build-managers/cmake/2.8.nix { };
|
||||
|
|
Loading…
Reference in a new issue