2023-11-22 17:43:05 +00:00
|
|
|
{
|
|
|
|
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" ''
|
2023-11-22 20:43:34 +00:00
|
|
|
exec ${pkgs.vscode-extensions.vadimcn.vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb "$@"
|
2023-11-22 17:43:05 +00:00
|
|
|
'';
|
|
|
|
in
|
|
|
|
{
|
2023-11-22 18:15:12 +00:00
|
|
|
devShells.default = pkgs.mkShell.override {
|
|
|
|
# https://nixos.wiki/wiki/Using_Clang_instead_of_GCC
|
|
|
|
stdenv = pkgs.clangStdenv;
|
|
|
|
} {
|
2023-11-22 17:43:05 +00:00
|
|
|
packages = with pkgs; [
|
|
|
|
bear
|
|
|
|
clang-tools
|
|
|
|
codelldb
|
|
|
|
];
|
2023-11-22 18:15:12 +00:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
ncurses
|
|
|
|
];
|
2023-11-22 20:43:34 +00:00
|
|
|
shellHook = ''
|
|
|
|
export GEN_FLAKE_SPEC_PATH="${./specs}"
|
|
|
|
'';
|
2023-11-22 17:43:05 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|