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
68
pkgs/applications/misc/cubiomes-viewer/default.nix
Normal file
68
pkgs/applications/misc/cubiomes-viewer/default.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, qtbase
|
||||
, qmake
|
||||
, qttools
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cubiomes-viewer";
|
||||
version = "2.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Cubitect";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-jwYmgA2JtWpEbuuFPwGdKKaSZ2uAs3t7CCCeu6eD9nI=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace cubiomes-viewer.pro \
|
||||
--replace '$$[QT_INSTALL_BINS]/lupdate' lupdate \
|
||||
--replace '$$[QT_INSTALL_BINS]/lrelease' lrelease
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
qttools
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
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,applications}
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue