diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c83ed64 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.cache/ +.direnv/ +a.out +compile_commands.json diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..c0a1cbd --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "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": 1700390070, + "narHash": "sha256-de9KYi8rSJpqvBfNwscWdalIJXPo8NjdIZcEJum1mH0=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "e4ad989506ec7d71f7302cc3067abd82730a4beb", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "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 index edd97f5..27653ce 100644 --- a/flake.nix +++ b/flake.nix @@ -19,13 +19,18 @@ ''; in { - devShells.default = pkgs.mkShell { + devShells.default = pkgs.mkShell.override { + # https://nixos.wiki/wiki/Using_Clang_instead_of_GCC + stdenv = pkgs.clangStdenv; + } { packages = with pkgs; [ bear - clang clang-tools codelldb ]; + buildInputs = with pkgs; [ + ncurses + ]; }; } ); diff --git a/main.c b/main.c new file mode 100644 index 0000000..1f81122 --- /dev/null +++ b/main.c @@ -0,0 +1,7 @@ +#include +#include + +int main(int argc, char **argv) { + + return EXIT_SUCCESS; +}