nixpkgs/pkgs/by-name/mi/minutor/package.nix
2024-11-29 15:53:04 +01:00

44 lines
828 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
qt5,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "minutor";
version = "2.21.0";
src = fetchFromGitHub {
owner = "mrkite";
repo = finalAttrs.pname;
rev = "refs/tags/${finalAttrs.version}";
sha256 = "0ldjnrk429ywf8cxdpjkam5k73s6fq7lvksandfn3xn7gl9np5rk";
};
preConfigure = ''
substituteInPlace minutor.pro \
--replace-fail /usr "$out"
'';
nativeBuildInputs = [
qt5.qmake
qt5.wrapQtAppsHook
];
buildInputs = [
qt5.qtbase
zlib
];
meta = {
description = "Easy to use mapping tool for Minecraft";
maintainers = [ lib.maintainers.sternenseemann ];
license = lib.licenses.bsd2;
homepage = "https://seancode.com/minutor/";
inherit (qt5.qtbase.meta) platforms;
mainProgram = "minutor";
};
})