On Mon, Dec 4, 2023 at 4:58 PM Vincenzo Palazzo <vincenzopalazzo...@gmail.com> wrote: > > This commit is specifically targeting enhancements in > Nix support for GCC development. This initiative stems > from the recognized need within our community for a more > streamlined and efficient development process when using Nix.
I think this is wrong place for this. > > Signed-off-by: Vincenzo Palazzo <vincenzopalazzo...@gmail.com> > --- > flake.lock | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > flake.nix | 35 +++++++++++++++++++++++++++++++ > 2 files changed, 95 insertions(+) > create mode 100644 flake.lock > create mode 100644 flake.nix > > diff --git a/flake.lock b/flake.lock > new file mode 100644 > index 00000000000..de713ff0da9 > --- /dev/null > +++ b/flake.lock > @@ -0,0 +1,60 @@ > +{ > + "nodes": { > + "flake-utils": { > + "inputs": { > + "systems": "systems" > + }, > + "locked": { > + "lastModified": 1694529238, > + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", > + "owner": "numtide", > + "repo": "flake-utils", > + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", > + "type": "github" > + }, > + "original": { > + "owner": "numtide", > + "repo": "flake-utils", > + "type": "github" > + } > + }, > + "nixpkgs": { > + "locked": { > + "lastModified": 1696095070, > + "narHash": "sha256-iDx02dT+OHYYgaRGJxp2HXvzSHkA9l8/3O8GJB2wttU=", > + "owner": "nixos", > + "repo": "nixpkgs", > + "rev": "1f0e8ac1f9a783c4cfa0515483094eeff4315fe2", > + "type": "github" > + }, > + "original": { > + "owner": "nixos", > + "repo": "nixpkgs", > + "type": "github" > + } > + }, > + "root": { > + "inputs": { > + "flake-utils": "flake-utils", > + "nixpkgs": "nixpkgs" > + } > + }, > + "systems": { > + "locked": { > + "lastModified": 1681028828, > + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", > + "owner": "nix-systems", > + "repo": "default", > + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", > + "type": "github" > + }, > + "original": { > + "owner": "nix-systems", > + "repo": "default", > + "type": "github" > + } > + } > + }, > + "root": "root", > + "version": 7 > +} > diff --git a/flake.nix b/flake.nix > new file mode 100644 > index 00000000000..b0ff1915adc > --- /dev/null > +++ b/flake.nix > @@ -0,0 +1,35 @@ > +{ > + description = "gcc compiler"; > + > + inputs = { > + nixpkgs.url = "github:nixos/nixpkgs"; > + flake-utils.url = "github:numtide/flake-utils"; > + }; > + > + outputs = { self, nixpkgs, flake-utils }: > + flake-utils.lib.eachDefaultSystem (system: > + let pkgs = nixpkgs.legacyPackages.${system}; > + in { > + packages = { > + default = pkgs.gnumake; > + }; > + formatter = pkgs.nixpkgs-fmt; > + > + devShell = pkgs.mkShell { > + buildInputs = [ > + pkgs.gnumake > + pkgs.gcc13 > + > + pkgs.gmp > + pkgs.libmpc > + pkgs.mpfr > + pkgs.isl > + pkgs.pkg-config > + pkgs.autoconf-archive > + pkgs.autoconf > + pkgs.automake > + ]; > + }; > + } > + ); > +} > -- > 2.43.0 >