From ec1407f39d925818231ac0d5b5cebb34c043766f Mon Sep 17 00:00:00 2001 From: Filip Brcic Date: Mon, 18 May 2020 22:25:08 +0200 Subject: [PATCH] Add support for NixOS Added default.nix that builds a nix-shell capable of building this project --- default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..e6e4c22 --- /dev/null +++ b/default.nix @@ -0,0 +1,23 @@ +let + pkgs = import {}; + unstable = import {}; + + inherit (unstable) stdenv; + + build_settings = unstable.gcc10Stdenv.mkDerivation { + name = "build_settings"; + + nativeBuildInputs = with pkgs; [ + # Tools + pkgconfig unstable.cmake unstable.ninja + binutils gnumake libtool automake autoconf gnum4 + ]; + + propagatedBuildInputs = [ + # Libraries + pkgs.libGL.dev pkgs.systemd.dev + ]; + + hardeningDisable = [ "format" ]; + }; +in build_settings