summaryrefslogtreecommitdiff
path: root/Toolchain/serenity.nix
blob: 3f6cab72ed86c3451408bfce17f13a931bb90a90 (plain)
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
31
32
33
34
35
36
37
{ pkgs ? import <nixpkgs> { } }:
with pkgs;

stdenv.mkDerivation {
  name = "cpp-env";
  nativeBuildInputs = [
    gcc11
    curl
    cmake
    mpfr
    ninja
    gmp
    libmpc
    e2fsprogs
    patch
    ccache
    rsync
    unzip
    texinfo
    # Example Build-time Additional Dependencies
    pkgconfig
  ];
  buildInputs = [
    # Example Run-time Additional Dependencies
    openssl
    xlibsWrapper
    qemu
    # e2fsprogs needs some optional parameter to activate fuse2fs with which
    # the qemu image will be mounted without root access.
    (e2fsprogs.overrideAttrs (oldAttrs: {
      buildInputs = oldAttrs.buildInputs ++ [ pkgs.fuse ];
    }))
    # glibc
  ];
  
  hardeningDisable = [ "format" "fortify" ];
}