2022-03-08 07:12:55 +03:00
|
|
|
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cpp-env";
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gcc11
|
|
|
|
curl
|
|
|
|
cmake
|
|
|
|
mpfr
|
|
|
|
ninja
|
|
|
|
gmp
|
|
|
|
libmpc
|
|
|
|
e2fsprogs
|
|
|
|
patch
|
|
|
|
ccache
|
|
|
|
rsync
|
|
|
|
unzip
|
2022-03-29 23:08:03 +03:00
|
|
|
texinfo
|
2022-03-08 07:12:55 +03:00
|
|
|
# Example Build-time Additional Dependencies
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
# Example Run-time Additional Dependencies
|
|
|
|
openssl
|
2022-03-29 23:08:03 +03:00
|
|
|
xlibsWrapper
|
2022-03-08 07:12:55 +03:00
|
|
|
qemu
|
2022-03-29 23:08:03 +03:00
|
|
|
# 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 ];
|
|
|
|
}))
|
2022-03-08 07:12:55 +03:00
|
|
|
# glibc
|
|
|
|
];
|
2022-03-29 23:08:03 +03:00
|
|
|
|
2022-03-08 07:12:55 +03:00
|
|
|
hardeningDisable = [ "format" "fortify" ];
|
|
|
|
}
|