2
0
mirror of https://github.com/status-im/status-mobile.git synced 2025-01-18 04:31:16 +00:00
Pedro Pombeiro 373291bfc0
nix: Avoid bad practice of inheriting pkgs
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-05-21 12:15:56 +02:00

30 lines
599 B
Nix

{ stdenv, callPackage,
appimagekit, patchelf, qt5, status-go }:
with stdenv;
assert isLinux;
let
baseImage = callPackage ./base-image { };
appimagekit = callPackage ./appimagekit { };
linuxdeployqt = callPackage ./linuxdeployqt { inherit appimagekit; };
in {
buildInputs = [
appimagekit
linuxdeployqt
patchelf
baseImage
qt5.full
] ++ status-go.buildInputs;
shellHook =
baseImage.shellHook +
status-go.shellHook + ''
export QT_PATH="${qt5.full}"
export QT_BASEBIN_PATH="${qt5.qtbase.bin}"
export PATH="${qt5.full}/bin:$PATH"
'';
}