mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
97c0a8c063
Moves the nix script to setup the build environment from Documentation into the Toolchain as a callable script. I also modified the script to accept a "pkgs" argument to make it easy to override the nixpkgs version from the command-line when calling the script.
31 lines
460 B
Nix
31 lines
460 B
Nix
{ pkgs ? import <nixpkgs> { } }:
|
|
with pkgs;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "cpp-env";
|
|
nativeBuildInputs = [
|
|
gcc11
|
|
curl
|
|
cmake
|
|
mpfr
|
|
ninja
|
|
gmp
|
|
libmpc
|
|
e2fsprogs
|
|
patch
|
|
ccache
|
|
rsync
|
|
unzip
|
|
|
|
# Example Build-time Additional Dependencies
|
|
pkgconfig
|
|
];
|
|
buildInputs = [
|
|
# Example Run-time Additional Dependencies
|
|
openssl
|
|
x11
|
|
qemu
|
|
# glibc
|
|
];
|
|
hardeningDisable = [ "format" "fortify" ];
|
|
}
|