mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ fetchgit
|
|
, pkg-config
|
|
, stdenv
|
|
, lib
|
|
# Package dependencies
|
|
, qt5
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fgqcanvas";
|
|
version = "0-unstable-2024-02-11";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.code.sf.net/p/flightgear/flightgear";
|
|
rev = "3168828949d6b42959ccee6c202b8895493edb2b";
|
|
hash = "sha256-QiIMkrzaB/ljVf6c+RJNFWKLZa84cIjYPO5nxEFDqjg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
qt5.wrapQtAppsHook
|
|
qt5.qmake
|
|
pkg-config
|
|
qt5.qttools
|
|
];
|
|
buildInputs = [
|
|
qt5.qtwebsockets
|
|
];
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
cd utils/fgqcanvas/
|
|
mkdir -p build
|
|
cd build
|
|
qmake -makefile ../fgcanvas.pro CONFIG+="release" QMAKE_CXXFLAGS+=' -Wno-deprecated-copy -Wno-deprecated -Wno-deprecated-declarations'
|
|
runHook postConfigure
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
mv fgqcanvas $out/bin/
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/utils/fgqcanvas/README.md";
|
|
description = "Qt-based remote canvas application for FlightGear";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ ];
|
|
mainProgram = "fgqcanvas";
|
|
};
|
|
}
|