serenity/Toolchain/serenity.nix
Linus Groh 1657a46ee7 Toolchain: Add grub2 and parted to serenity.nix
This allows building the GRUB disk image from within the nix shell.
2023-03-16 18:47:06 +00:00

39 lines
578 B
Nix

{ pkgs ? import <nixpkgs> { } }:
with pkgs;
stdenv.mkDerivation {
name = "cpp-env";
nativeBuildInputs = [
gcc12
curl
cmake
mpfr
ninja
gmp
libmpc
e2fsprogs
fuse2fs
patch
ccache
rsync
unzip
texinfo
# Example Build-time Additional Dependencies
pkg-config
];
buildInputs = [
# Example Run-time Additional Dependencies
openssl
libxcrypt
xlibsWrapper
qemu
e2fsprogs
fuse2fs
# To build the GRUB disk image
grub2
parted
];
hardeningDisable = [ "format" "fortify" ];
}