2019-05-08 15:07:06 +00:00
|
|
|
{ stdenv, pkgs, target-os, status-go }:
|
2019-02-15 08:04:03 +00:00
|
|
|
|
|
|
|
with pkgs;
|
2019-03-21 16:56:22 +00:00
|
|
|
with stdenv;
|
2019-02-15 08:04:03 +00:00
|
|
|
|
|
|
|
let
|
2019-05-02 18:13:16 +00:00
|
|
|
platform = callPackage ../platform.nix { inherit target-os; };
|
2019-05-08 15:07:06 +00:00
|
|
|
linuxPlatform = callPackage ./linux { inherit status-go; };
|
|
|
|
darwinPlatform = callPackage ./macos { inherit status-go; };
|
2019-02-15 08:04:03 +00:00
|
|
|
windowsPlatform = callPackage ./windows { };
|
2019-05-07 06:43:53 +00:00
|
|
|
snoreNotifySources = callPackage ./cmake/snorenotify { };
|
|
|
|
qtkeychainSources = callPackage ./cmake/qtkeychain { };
|
2019-02-15 08:04:03 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
buildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
file
|
2019-05-07 06:43:53 +00:00
|
|
|
snoreNotifySources
|
|
|
|
qtkeychainSources
|
2019-05-02 18:13:16 +00:00
|
|
|
] ++ lib.optionals platform.targetLinux linuxPlatform.buildInputs
|
|
|
|
++ lib.optionals platform.targetDarwin darwinPlatform.buildInputs
|
|
|
|
++ lib.optionals platform.targetWindows windowsPlatform.buildInputs
|
|
|
|
++ lib.optional (! platform.targetWindows) qt5.full;
|
2019-05-07 06:43:53 +00:00
|
|
|
shellHook =
|
|
|
|
snoreNotifySources.shellHook +
|
|
|
|
qtkeychainSources.shellHook +
|
|
|
|
lib.optionalString (target-os != "windows") ''
|
|
|
|
export QT_PATH="${qt5.full}"
|
|
|
|
export QT_BASEBIN_PATH="${qt5.qtbase.bin}"
|
|
|
|
export PATH="${qt5.full}/bin:$PATH"
|
|
|
|
'' +
|
|
|
|
lib.optionalString platform.targetLinux linuxPlatform.shellHook +
|
|
|
|
lib.optionalString platform.targetDarwin darwinPlatform.shellHook +
|
|
|
|
lib.optionalString platform.targetWindows windowsPlatform.shellHook;
|
2019-02-15 08:04:03 +00:00
|
|
|
}
|