Ensure a consistent golang version is used throughout Nix
This commit is contained in:
parent
ea8bf402d7
commit
9b7b5b9608
|
@ -10,7 +10,7 @@ let
|
||||||
gradle = pkgs.gradle_4_10;
|
gradle = pkgs.gradle_4_10;
|
||||||
go = pkgs.go_1_11;
|
go = pkgs.go_1_11;
|
||||||
buildGoPackage = pkgs.buildGoPackage.override { inherit go; };
|
buildGoPackage = pkgs.buildGoPackage.override { inherit go; };
|
||||||
statusDesktop = pkgs.callPackage ./nix/desktop { inherit target-os status-go pkgs; inherit (pkgs) darwin; stdenv = stdenv'; nodejs = nodejs'; };
|
statusDesktop = pkgs.callPackage ./nix/desktop { inherit target-os status-go pkgs go; inherit (pkgs) darwin; stdenv = stdenv'; nodejs = nodejs'; };
|
||||||
statusMobile = pkgs.callPackage ./nix/mobile { inherit target-os config pkgs status-go gradle; inherit (pkgs.xcodeenv) composeXcodeWrapper; stdenv = stdenv'; nodejs = nodejs'; };
|
statusMobile = pkgs.callPackage ./nix/mobile { inherit target-os config pkgs status-go gradle; inherit (pkgs.xcodeenv) composeXcodeWrapper; stdenv = stdenv'; nodejs = nodejs'; };
|
||||||
status-go = pkgs.callPackage ./nix/status-go { inherit target-os go buildGoPackage; inherit (pkgs.xcodeenv) composeXcodeWrapper; inherit (statusMobile) xcodewrapperArgs; androidPkgs = statusMobile.androidComposition; };
|
status-go = pkgs.callPackage ./nix/status-go { inherit target-os go buildGoPackage; inherit (pkgs.xcodeenv) composeXcodeWrapper; inherit (statusMobile) xcodewrapperArgs; androidPkgs = statusMobile.androidComposition; };
|
||||||
nodejs' = pkgs.nodejs-10_x;
|
nodejs' = pkgs.nodejs-10_x;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, pkgs, callPackage, target-os,
|
{ stdenv, pkgs, callPackage, target-os,
|
||||||
cmake, extra-cmake-modules, file, status-go,
|
cmake, extra-cmake-modules, file, status-go, go,
|
||||||
darwin, nodejs }:
|
darwin, nodejs }:
|
||||||
|
|
||||||
with stdenv;
|
with stdenv;
|
||||||
|
@ -8,7 +8,7 @@ let
|
||||||
platform = callPackage ../platform.nix { inherit target-os; };
|
platform = callPackage ../platform.nix { inherit target-os; };
|
||||||
linuxPlatform = callPackage ./linux { inherit status-go; };
|
linuxPlatform = callPackage ./linux { inherit status-go; };
|
||||||
darwinPlatform = callPackage ./macos { inherit status-go darwin; };
|
darwinPlatform = callPackage ./macos { inherit status-go darwin; };
|
||||||
windowsPlatform = callPackage ./windows { };
|
windowsPlatform = callPackage ./windows { inherit go; };
|
||||||
snoreNotifySources = callPackage ./cmake/snorenotify { };
|
snoreNotifySources = callPackage ./cmake/snorenotify { };
|
||||||
qtkeychainSources = callPackage ./cmake/qtkeychain { };
|
qtkeychainSources = callPackage ./cmake/qtkeychain { };
|
||||||
selectedSources =
|
selectedSources =
|
||||||
|
@ -20,16 +20,15 @@ let
|
||||||
inherit pkgs nodejs;
|
inherit pkgs nodejs;
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in {
|
||||||
{
|
buildInputs = [
|
||||||
buildInputs = [
|
cmake
|
||||||
cmake
|
extra-cmake-modules
|
||||||
extra-cmake-modules
|
file
|
||||||
file
|
snoreNotifySources
|
||||||
snoreNotifySources
|
qtkeychainSources
|
||||||
qtkeychainSources
|
] ++ lib.catAttrs "buildInputs" selectedSources
|
||||||
] ++ lib.catAttrs "buildInputs" selectedSources
|
++ (builtins.attrValues nodeInputs);
|
||||||
++ (builtins.attrValues nodeInputs);
|
|
||||||
|
|
||||||
shellHook = lib.concatStrings (lib.catAttrs "shellHook" (selectedSources ++ [ snoreNotifySources qtkeychainSources ]));
|
shellHook = lib.concatStrings (lib.catAttrs "shellHook" (selectedSources ++ [ snoreNotifySources qtkeychainSources ]));
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ with stdenv;
|
||||||
let
|
let
|
||||||
platform = callPackage ../platform.nix { inherit target-os; };
|
platform = callPackage ../platform.nix { inherit target-os; };
|
||||||
utils = callPackage ../utils.nix { inherit xcodeWrapper; };
|
utils = callPackage ../utils.nix { inherit xcodeWrapper; };
|
||||||
gomobile = callPackage ./gomobile { inherit (androidPkgs) platform-tools; inherit buildGoPackage composeXcodeWrapper xcodewrapperArgs utils; };
|
gomobile = callPackage ./gomobile { inherit (androidPkgs) platform-tools; inherit composeXcodeWrapper xcodewrapperArgs utils buildGoPackage; };
|
||||||
buildStatusGoDesktopLib = callPackage ./build-desktop-status-go.nix { inherit buildGoPackage go xcodeWrapper utils; };
|
buildStatusGoDesktopLib = callPackage ./build-desktop-status-go.nix { inherit buildGoPackage go xcodeWrapper utils; };
|
||||||
buildStatusGoMobileLib = callPackage ./build-mobile-status-go.nix { inherit buildGoPackage go gomobile xcodeWrapper utils; };
|
buildStatusGoMobileLib = callPackage ./build-mobile-status-go.nix { inherit buildGoPackage go gomobile xcodeWrapper utils; };
|
||||||
extractStatusGoConfig = f: lib.last (lib.splitString "\n" (lib.fileContents f));
|
extractStatusGoConfig = f: lib.last (lib.splitString "\n" (lib.fileContents f));
|
||||||
|
|
Loading…
Reference in New Issue