event-sim/nixos/programs/atools/default.nix

48 lines
926 B
Nix
Raw Normal View History

{ 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 ];
};
}