event-sim/nixos/programs/atools/default.nix
fly 02e1fad297 Initial commit
Signed-off-by: fly <merspieler@alwaysdata.com>
2024-05-31 11:47:34 +00:00

47 lines
926 B
Nix

{ fetchFromGitHub
, pkg-config
, stdenv
, lib
# Package dependencies
, libsForQt5
}:
stdenv.mkDerivation rec {
pname = "atools";
version = "4.0.6";
src = fetchFromGitHub {
owner = "albar965";
repo = "atools";
rev = "v${version}";
sha256 = "sha256-ieL7cGqXNmGMyTf8tXCSmwQFwyHyy8NwGJ+3Zg92nmM=";
};
dontWrapQtApps = true;
installPhase = ''
runHook preInstall
mkdir -p $out/include
mv libatools.a $out
cp -r * $out/include/
'';
nativeBuildInputs = [
libsForQt5.qmake
pkg-config
libsForQt5.qttools
];
buildInputs = [
libsForQt5.qtwebengine
];
meta = with lib; {
homepage = "https://github.com/albar965/atools";
description = "static library extending Qt for exception handling,
a log4j like logging framework, Flight Simulator related utilities like BGL reader
and more.";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ nayala ];
};
}