Skip to content

Commit b95da4d

Browse files
committed
Add shell.nix
Signed-off-by: Simão Gomes Viana <[email protected]>
1 parent 79459a7 commit b95da4d

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

shell.nix

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
3+
let fhs = pkgs.buildFHSUserEnv {
4+
name = "linux-env";
5+
targetPkgs = pkgs: with pkgs; [
6+
bc
7+
bison
8+
ccache
9+
clang
10+
elfutils elfutils.dev
11+
flex
12+
git
13+
gnumake
14+
libelf
15+
lld
16+
llvm
17+
libgcc
18+
openssl openssl.dev
19+
perl
20+
pkgconf
21+
python3
22+
util-linux
23+
];
24+
multiPkgs = pkgs: with pkgs; [
25+
];
26+
runScript = "zsh";
27+
profile = ''
28+
export LD_LIBRARY_PATH=/usr/lib:/usr/lib32
29+
'';
30+
};
31+
in pkgs.stdenv.mkDerivation {
32+
name = "linux-env-shell";
33+
nativeBuildInputs = [ fhs ];
34+
shellHook = "exec linux-env";
35+
}

0 commit comments

Comments
 (0)