2019-11-29 11:20:08 +01:00
|
|
|
{ stdenv, mkShell, callPackage,
|
2019-10-01 20:52:20 +03:00
|
|
|
appimagekit, patchelf, qt5, status-go, baseImageFactory }:
|
2019-03-21 17:56:22 +01:00
|
|
|
|
|
|
|
with stdenv;
|
|
|
|
|
2019-05-07 08:43:53 +02:00
|
|
|
assert isLinux;
|
|
|
|
|
2019-03-21 17:56:22 +01:00
|
|
|
let
|
2019-07-19 20:40:03 +02:00
|
|
|
inherit (lib) concatStrings catAttrs;
|
2019-10-01 20:52:20 +03:00
|
|
|
baseImage = baseImageFactory "linux";
|
2019-03-21 17:56:22 +01:00
|
|
|
appimagekit = callPackage ./appimagekit { };
|
|
|
|
linuxdeployqt = callPackage ./linuxdeployqt { inherit appimagekit; };
|
|
|
|
|
2019-11-29 11:20:08 +01:00
|
|
|
in rec {
|
2019-05-08 17:07:06 +02:00
|
|
|
buildInputs = [
|
|
|
|
appimagekit
|
|
|
|
linuxdeployqt
|
|
|
|
patchelf
|
2019-05-13 11:22:29 +02:00
|
|
|
qt5.full
|
|
|
|
] ++ status-go.buildInputs;
|
2019-04-04 00:05:59 +02:00
|
|
|
|
2019-11-29 11:20:08 +01:00
|
|
|
shell = mkShell {
|
|
|
|
inherit buildInputs;
|
|
|
|
shellHook = concatStrings (catAttrs "shellHook" [ baseImage status-go ]) + ''
|
2019-05-13 11:22:29 +02:00
|
|
|
export QT_PATH="${qt5.full}"
|
|
|
|
export QT_BASEBIN_PATH="${qt5.qtbase.bin}"
|
|
|
|
export PATH="${qt5.full}/bin:$PATH"
|
|
|
|
'';
|
2019-11-29 11:20:08 +01:00
|
|
|
};
|
2019-03-21 17:56:22 +01:00
|
|
|
}
|