2019-05-22 16:04:45 +00:00
|
|
|
{ stdenv, pkgs, callPackage, target-os,
|
2019-09-13 12:50:49 +00:00
|
|
|
cmake, extra-cmake-modules, file, moreutils, status-go, go,
|
2019-04-01 20:07:39 +00:00
|
|
|
darwin, nodejs }:
|
2019-02-15 08:04:03 +00:00
|
|
|
|
|
|
|
let
|
2019-06-04 16:50:29 +00:00
|
|
|
inherit (stdenv.lib) catAttrs concatStrings optional unique;
|
|
|
|
|
2019-05-02 18:13:16 +00:00
|
|
|
platform = callPackage ../platform.nix { inherit target-os; };
|
2019-10-01 17:52:20 +00:00
|
|
|
baseImageFactory = callPackage ./base-image { inherit stdenv; };
|
|
|
|
linuxPlatform = callPackage ./linux { inherit stdenv status-go baseImageFactory; };
|
|
|
|
darwinPlatform = callPackage ./macos { inherit stdenv status-go darwin baseImageFactory; };
|
|
|
|
windowsPlatform = callPackage ./windows { inherit stdenv go baseImageFactory; };
|
2019-05-07 06:43:53 +00:00
|
|
|
snoreNotifySources = callPackage ./cmake/snorenotify { };
|
|
|
|
qtkeychainSources = callPackage ./cmake/qtkeychain { };
|
2019-05-13 09:22:29 +00:00
|
|
|
selectedSources =
|
2019-06-04 16:50:29 +00:00
|
|
|
optional platform.targetLinux linuxPlatform ++
|
|
|
|
optional platform.targetDarwin darwinPlatform ++
|
|
|
|
optional platform.targetWindows windowsPlatform;
|
2019-02-15 08:04:03 +00:00
|
|
|
|
2019-06-07 14:37:30 +00:00
|
|
|
in {
|
2019-06-04 16:50:29 +00:00
|
|
|
buildInputs = unique ([
|
2019-06-07 14:37:30 +00:00
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
file
|
2019-09-13 12:50:49 +00:00
|
|
|
moreutils
|
2019-06-07 14:37:30 +00:00
|
|
|
snoreNotifySources
|
|
|
|
qtkeychainSources
|
2019-09-05 18:21:37 +00:00
|
|
|
] ++ catAttrs "buildInputs" selectedSources);
|
2019-05-22 16:04:45 +00:00
|
|
|
|
2019-06-04 16:50:29 +00:00
|
|
|
shellHook = concatStrings (catAttrs "shellHook" (selectedSources ++ [ snoreNotifySources qtkeychainSources ]));
|
2019-06-07 14:37:30 +00:00
|
|
|
}
|