Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

100 lines
1.6 KiB
Nix

{
lib,
stdenv,
env,
fetchFromGitHub,
pkg-config,
qbs,
wrapQtAppsHook,
qtbase,
qtdeclarative,
qttools,
qtwayland,
qtsvg,
zlib,
zstd,
libGL,
}:
let
qtEnv = env "tiled-qt-env" [
qtbase
qtdeclarative
qtsvg
qttools
qtwayland
];
in
stdenv.mkDerivation rec {
pname = "tiled";
# nixpkgs-update: no auto update
version = "1.11.2";
src = fetchFromGitHub {
owner = "mapeditor";
repo = "tiled";
rev = "v${version}";
sha256 = "sha256-9oUKn51MQcsStgIJrp9XW5YAIpAUcO0kzfGnYA3gz/E=";
};
nativeBuildInputs = [
pkg-config
qbs
wrapQtAppsHook
];
buildInputs = [
qtEnv
zlib
zstd
libGL
];
outputs = [
"out"
"dev"
];
strictDeps = true;
configurePhase = ''
runHook preConfigure
qbs setup-qt --settings-dir . ${qtEnv}/bin/qmake qtenv
qbs config --settings-dir . defaultProfile qtenv
qbs resolve --settings-dir . config:release qbs.installPrefix:/ projects.Tiled.installHeaders:true
runHook postConfigure
'';
buildPhase = ''
runHook preBuild
qbs build --settings-dir . config:release
runHook postBuild
'';
installPhase = ''
runHook preInstall
qbs install --settings-dir . --install-root $out config:release
runHook postInstall
'';
meta = with lib; {
description = "Free, easy to use and flexible tile map editor";
homepage = "https://www.mapeditor.org/";
license = with licenses; [
bsd2 # libtiled and tmxviewer
gpl2Plus # all the rest
];
maintainers = with maintainers; [
dywedir
ryan4yin
];
platforms = platforms.linux;
};
}