status-react/nix/desktop/linux/default.nix

29 lines
655 B
Nix
Raw Normal View History

{ stdenv, callPackage,
appimagekit, patchelf, qt5, status-go, baseImageFactory }:
with stdenv;
assert isLinux;
let
2019-07-19 18:40:03 +00:00
inherit (lib) concatStrings catAttrs;
baseImage = baseImageFactory "linux";
appimagekit = callPackage ./appimagekit { };
linuxdeployqt = callPackage ./linuxdeployqt { inherit appimagekit; };
in {
buildInputs = [
appimagekit
linuxdeployqt
patchelf
qt5.full
] ++ status-go.buildInputs;
shellHook =
2019-07-19 18:40:03 +00:00
concatStrings (catAttrs "shellHook" [ baseImage status-go ] ) + ''
export QT_PATH="${qt5.full}"
export QT_BASEBIN_PATH="${qt5.qtbase.bin}"
export PATH="${qt5.full}/bin:$PATH"
'';
}