Initial commit.

pull/9/head
Joshua Potter 2023-11-22 10:43:05 -07:00
commit 76d8dd3789
2 changed files with 35 additions and 0 deletions

3
.envrc Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
use flake

32
flake.nix Normal file
View File

@ -0,0 +1,32 @@
{
description = ''
CLI for initializing new projects deterministically with flakes.
'';
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
codelldb = pkgs.writeShellScriptBin "codelldb" ''
#!/usr/bin/env bash
exec ${pkgs.vscode-extensions.vadimcn.vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb "$@"
'';
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
bear
clang
clang-tools
codelldb
];
};
}
);
}