-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcrossbuild.nix
More file actions
24 lines (22 loc) · 807 Bytes
/
Copy pathcrossbuild.nix
File metadata and controls
24 lines (22 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# crossbuild.nix is a builder that builds the `vscode-insiders` package
# in CI. Since we're not actually doing cross-compilation, it is easy to
# see where we might've messed up.
#
# Example:
# # Build the `x86_64-linux` version of the derivation
# $ nix build --file crossbuild.nix --argstr system x86_64-unknown-linux-gnu
{system ? ""}: let
lockfile = builtins.fromJSON (builtins.readFile ./flake.lock);
rev = lockfile.nodes.nixpkgs.locked;
nixpkgs = builtins.fetchTarball {
url = "https://github.com/${rev.owner}/${rev.repo}/archive/${rev.rev}.tar.gz";
sha256 = rev.narHash;
};
pkgs = import nixpkgs {
crossSystem = system;
localSystem = builtins.currentSystem;
config.allowUnfree = true;
};
vscode-insiders = import ./overlay.nix {} pkgs;
in
vscode-insiders