cubiomes-viewer: 2.1.1 -> 2.2.2
This commit is contained in:
parent
0e6a453841
commit
dae2fec8a7
|
@ -3,42 +3,38 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, qtbase
|
, qtbase
|
||||||
, qmake
|
, qmake
|
||||||
|
, qttools
|
||||||
, wrapQtAppsHook
|
, wrapQtAppsHook
|
||||||
, copyDesktopItems
|
|
||||||
, makeDesktopItem
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cubiomes-viewer";
|
pname = "cubiomes-viewer";
|
||||||
version = "2.1.1";
|
version = "2.2.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Cubitect";
|
owner = "Cubitect";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-cIA6W82XEeW0k9WNygZ/KVFZE31QThpkV4OazVEvmtw=";
|
sha256 = "sha256-jwYmgA2JtWpEbuuFPwGdKKaSZ2uAs3t7CCCeu6eD9nI=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace cubiomes-viewer.pro \
|
||||||
|
--replace '$$[QT_INSTALL_BINS]/lupdate' lupdate \
|
||||||
|
--replace '$$[QT_INSTALL_BINS]/lrelease' lrelease
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
qtbase
|
qtbase
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
qmake
|
qmake
|
||||||
|
qttools
|
||||||
wrapQtAppsHook
|
wrapQtAppsHook
|
||||||
copyDesktopItems
|
|
||||||
];
|
];
|
||||||
|
|
||||||
desktopItems = [ (makeDesktopItem {
|
|
||||||
name = pname;
|
|
||||||
desktopName = "Cubiomes Viewer";
|
|
||||||
exec = pname;
|
|
||||||
icon = pname;
|
|
||||||
categories = [ "Game" ];
|
|
||||||
comment = meta.description;
|
|
||||||
}) ];
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
# QMAKE_PRE_LINK is not executed (I dont know why)
|
# QMAKE_PRE_LINK is not executed (I dont know why)
|
||||||
make -C ./cubiomes libcubiomes CFLAGS="-DSTRUCT_CONFIG_OVERRIDE=1" all
|
make -C ./cubiomes libcubiomes CFLAGS="-DSTRUCT_CONFIG_OVERRIDE=1" all
|
||||||
|
@ -50,8 +46,9 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp cubiomes-viewer $out/bin
|
cp cubiomes-viewer $out/bin
|
||||||
|
|
||||||
mkdir -p $out/share/pixmaps
|
mkdir -p $out/share/{pixmaps,applications}
|
||||||
cp rc/icons/map.png $out/share/pixmaps/cubiomes-viewer.png
|
cp rc/icons/map.png $out/share/pixmaps/com.github.cubitect.cubiomes-viewer.png
|
||||||
|
cp etc/com.github.cubitect.cubiomes-viewer.desktop $out/share/applications
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue