From df3bce833ee1627d6d6c782a84f7c68f0c371c33 Mon Sep 17 00:00:00 2001 From: twoneis Date: Sun, 11 Aug 2024 17:54:20 +0200 Subject: [PATCH] c flake --- c/flake.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 c/flake.nix diff --git a/c/flake.nix b/c/flake.nix new file mode 100644 index 0000000..51c596b --- /dev/null +++ b/c/flake.nix @@ -0,0 +1,22 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachSystem [ + "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" + ] (system: let + pkgs = import nixpkgs { + inherit system; + }; + in { + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + # keep the next to in this order + clang-tools + clang + ]; + }; + }); +}