Files
status-react/scripts/lib/setup/nix/desktop/linuxdeployqt/default.nix
T
Pedro Pombeiro 2ac5ee019e Migrate Desktop build environment to leverage Nix
- Add Conan to default.nix
- Integrate Qt5 Nix package (with forked repo for new QtWebView module)
- Fix rpaths in macOS and Linux
- Add Nix expressions to install nsis, appimagekit and linuxdeployqt
2019-03-21 13:56:58 +01:00

44 lines
1.2 KiB
Nix

{ pkgs, stdenv, fetchFromGitHub, appimagekit }:
with pkgs;
stdenv.mkDerivation rec {
name = "linuxdeployqt";
version = "20181215";
src =
if stdenv.hostPlatform.system == "x86_64-linux" then
fetchFromGitHub {
owner = "probonopd";
repo = "linuxdeployqt";
rev = "600fc20ea73ee937a402a2bb6b3663d93fcc1d4b";
sha256 = "05kvkfbhsyadlcggl63rhrw5s36d8qxs8gyihrjn2cjk42xx8r7j";
}
else throw "${name} is not supported on ${stdenv.hostPlatform.system}";
buildInputs = [ qt5.qtbase appimagekit ];
nativeBuildInputs = [ wget ];
buildPhase = ''
qmake
make
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp -r bin/linuxdeployqt $out/bin/
runHook postInstall
'';
meta = {
description = "Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications";
homepage = https://github.com/probonopd/linuxdeployqt/;
license = stdenv.lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.pombeirp ];
platforms = stdenv.lib.platforms.linux;
};
}