-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
30 lines (28 loc) · 788 Bytes
/
Copy pathflake.nix
File metadata and controls
30 lines (28 loc) · 788 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
25
26
27
28
29
30
{
description = "My pikaboot build env";
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
outputs = { self, nixpkgs }:
let pkgs = import nixpkgs {
system = "x86_64-linux";
crossSystem = {
config = "aarch64-linux-gnu";
};
};
in
{
devShell.x86_64-linux =
pkgs.callPackage
(
{ mkShell, qemu }:
mkShell {
# What to use for what ?
# See https://github.com/NixOS/nixpkgs/pull/50881#issuecomment-440772499
nativeBuildInputs = [ ];
depsBuildBuild = [ qemu ];
# glibc.static is needed to get static libraries (like -lm) for linker
buildInputs = [ ];
}
)
{ };
};
}