Skip to content

Commit

Permalink
Fixes for GCC 12. Fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
itkatchev committed Feb 6, 2023
1 parent e868764 commit 673bdac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 3 additions & 6 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/22.05.tar.gz") {}
pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/22.11.tar.gz") {}
} :
with pkgs;
let
stdenv = gcc11Stdenv;
in
mkShell.override { inherit stdenv; } {
buildInputs = [ stdenv.glibc.static python3 ];
mkShell.override { stdenv = gcc12Stdenv; } {
buildInputs = [ python3 ];
}

2 changes: 2 additions & 0 deletions deps.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@
#include <iostream>
#include <fstream>

#include <cstring>

#endif

0 comments on commit 673bdac

Please sign in to comment.