Add Clang to dev shell
This commit is contained in:
parent
a9d7d4d47e
commit
a1d4c8f6d0
|
@ -82,7 +82,8 @@
|
||||||
devShell =
|
devShell =
|
||||||
# Development shell for working with the
|
# Development shell for working with the
|
||||||
# upstream Genode source repositories
|
# upstream Genode source repositories
|
||||||
forAllLocalSystems (system:
|
let
|
||||||
|
devShell' = forAllSystems ({ system, localSystem, crossSystem }:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgsFor.${system};
|
pkgs = nixpkgsFor.${system};
|
||||||
fhs = pkgs.buildFHSUserEnv {
|
fhs = pkgs.buildFHSUserEnv {
|
||||||
|
@ -91,6 +92,7 @@
|
||||||
(with pkgs; [
|
(with pkgs; [
|
||||||
binutils
|
binutils
|
||||||
bison
|
bison
|
||||||
|
nixpkgsFor.${localSystem}.buildPackages.clang
|
||||||
expect
|
expect
|
||||||
flex
|
flex
|
||||||
git
|
git
|
||||||
|
@ -107,7 +109,8 @@
|
||||||
toolchain = pkgs.fetchzip {
|
toolchain = pkgs.fetchzip {
|
||||||
url =
|
url =
|
||||||
"file://${packages.x86_64-linux-x86_64-genode.genodeSources.toolchain.src}";
|
"file://${packages.x86_64-linux-x86_64-genode.genodeSources.toolchain.src}";
|
||||||
hash = "sha256-26rPvLUPEJm40zLSqTquwuFTJ1idTB0T4VXgaHRN+4o=";
|
hash =
|
||||||
|
"sha256-26rPvLUPEJm40zLSqTquwuFTJ1idTB0T4VXgaHRN+4o=";
|
||||||
};
|
};
|
||||||
in "ln -s ${toolchain}/local usr/local";
|
in "ln -s ${toolchain}/local usr/local";
|
||||||
};
|
};
|
||||||
|
@ -116,6 +119,7 @@
|
||||||
nativeBuildInputs = [ fhs ];
|
nativeBuildInputs = [ fhs ];
|
||||||
shellHook = "exec genode-env";
|
shellHook = "exec genode-env";
|
||||||
});
|
});
|
||||||
|
in { x86_64-linux = devShell'.x86_64-linux-x86_64-genode; };
|
||||||
|
|
||||||
apps =
|
apps =
|
||||||
# Utilities accessible via "nix run"
|
# Utilities accessible via "nix run"
|
||||||
|
|
Loading…
Reference in New Issue