2019-11-29 10:20:08 +00:00
|
|
|
{ stdenv, mkShell, callPackage, status-go,
|
|
|
|
cmake, extra-cmake-modules, file, moreutils, go, 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-10-01 17:52:20 +00:00
|
|
|
baseImageFactory = callPackage ./base-image { inherit stdenv; };
|
2019-05-07 06:43:53 +00:00
|
|
|
snoreNotifySources = callPackage ./cmake/snorenotify { };
|
|
|
|
qtkeychainSources = callPackage ./cmake/qtkeychain { };
|
2019-11-29 10:20:08 +00:00
|
|
|
|
|
|
|
# main targets
|
|
|
|
linux = callPackage ./linux { inherit stdenv status-go baseImageFactory; };
|
|
|
|
macos = callPackage ./macos { inherit stdenv status-go darwin baseImageFactory; };
|
|
|
|
windows = callPackage ./windows { inherit stdenv go baseImageFactory; };
|
|
|
|
|
2019-05-13 09:22:29 +00:00
|
|
|
selectedSources =
|
2019-11-29 10:20:08 +00:00
|
|
|
optional stdenv.isLinux linux ++
|
|
|
|
optional stdenv.isLinux windows ++
|
|
|
|
optional stdenv.isDarwin macos;
|
|
|
|
|
|
|
|
in rec {
|
|
|
|
inherit linux macos windows;
|
2019-02-15 08:04:03 +00:00
|
|
|
|
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-11-29 10:20:08 +00:00
|
|
|
shell = mkShell {
|
|
|
|
inherit buildInputs;
|
|
|
|
shellHook = concatStrings (catAttrs "shellHook" (
|
|
|
|
selectedSources ++ [ snoreNotifySources qtkeychainSources ]
|
|
|
|
));
|
|
|
|
};
|
2019-06-07 14:37:30 +00:00
|
|
|
}
|