azure-storage-azcopy: 10.27.1 -> 10.28.0 (#377459)
[NixPkgs.git] / pkgs / by-name / fg / fgqcanvas / package.nix
blob33edfdf380f32a37c4dd6ee76f99accd616633a6
2   fetchgit,
3   pkg-config,
4   stdenv,
5   lib,
6   # Package dependencies
7   qt5,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "fgqcanvas";
12   version = "0-unstable-2024-02-11";
14   src = fetchgit {
15     url = "https://git.code.sf.net/p/flightgear/flightgear";
16     rev = "3168828949d6b42959ccee6c202b8895493edb2b";
17     hash = "sha256-QiIMkrzaB/ljVf6c+RJNFWKLZa84cIjYPO5nxEFDqjg=";
18   };
20   nativeBuildInputs = [
21     qt5.wrapQtAppsHook
22     qt5.qmake
23     pkg-config
24     qt5.qttools
25   ];
26   buildInputs = [
27     qt5.qtwebsockets
28   ];
30   configurePhase = ''
31     runHook preConfigure
32     cd utils/fgqcanvas/
33     mkdir -p build
34     cd build
35     qmake -makefile ../fgcanvas.pro CONFIG+="release" QMAKE_CXXFLAGS+=' -Wno-deprecated-copy -Wno-deprecated -Wno-deprecated-declarations'
36     runHook postConfigure
37   '';
39   installPhase = ''
40     runHook preInstall
41     mkdir -p $out/bin
42     mv fgqcanvas $out/bin/
43     runHook postInstall
44   '';
46   meta = with lib; {
47     homepage = "https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/utils/fgqcanvas/README.md";
48     description = "Qt-based remote canvas application for FlightGear";
49     license = licenses.gpl2Plus;
50     platforms = platforms.linux;
51     maintainers = [ ];
52     mainProgram = "fgqcanvas";
53   };