-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrelease.nix
22 lines (17 loc) · 844 Bytes
/
release.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ pkgs ? import <nixpkgs> {} }:
let
makeWith = { localSystem, crossSystem ? localSystem }:
(import pkgs.path { inherit localSystem crossSystem; }).callPackage ./nix/make.nix {};
in
rec {
native-cmake = pkgs.callPackage ./nix/cmake.nix {};
native-cmake-static = native-cmake.override { static = true; };
# This is used to build bootstrap tools.
x86_64-darwin-native = makeWith { localSystem = "x86_64-darwin"; };
# This is included in bootstrap tools.
aarch64-darwin-cross = makeWith { localSystem = "x86_64-darwin"; crossSystem = "aarch64-darwin"; };
# This is built as part of stdenv.
aarch64-darwin-native = makeWith { localSystem = "aarch64-darwin"; };
linux-native = makeWith { localSystem = "aarch64-linux"; };
linux-cross = makeWith { localSystem = "x86_64-linux"; crossSystem = "aarch64-linux"; };
}