feat(fmt): Add formatter using alejandra and format flake
This commit is contained in:
parent
c3bcb27b19
commit
f0c3c00b56
@ -38,6 +38,10 @@
|
|||||||
|
|
||||||
# This is where the Neovim derivation is built.
|
# This is where the Neovim derivation is built.
|
||||||
neovim-overlay = import ./nix/neovim-overlay.nix {inherit inputs;};
|
neovim-overlay = import ./nix/neovim-overlay.nix {inherit inputs;};
|
||||||
|
inherit (self) outputs;
|
||||||
|
# This is a function that generates an attribute by calling a function you
|
||||||
|
# pass to it, with each system as an argument
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
in
|
in
|
||||||
flake-utils.lib.eachSystem supportedSystems (system: let
|
flake-utils.lib.eachSystem supportedSystems (system: let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
@ -66,6 +70,7 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
formatter = nixpkgs.legacyPackages.${system}.alejandra;
|
||||||
packages = rec {
|
packages = rec {
|
||||||
default = nvim;
|
default = nvim;
|
||||||
nvim = pkgs.nvim-pkg;
|
nvim = pkgs.nvim-pkg;
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
{ stdenv, lib
|
{
|
||||||
, system ? builtins.currentSystem
|
stdenv,
|
||||||
, fetchurl
|
lib,
|
||||||
, unzip
|
system ? builtins.currentSystem,
|
||||||
, libz
|
fetchurl,
|
||||||
, libcxx
|
unzip,
|
||||||
, lttng-ust_2_12
|
libz,
|
||||||
, autoPatchelfHook
|
libcxx,
|
||||||
|
lttng-ust_2_12,
|
||||||
|
autoPatchelfHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cpptools";
|
pname = "cpptools";
|
||||||
version = "1.21.6";
|
version = "1.21.6";
|
||||||
@ -20,7 +21,6 @@ stdenv.mkDerivation rec {
|
|||||||
darwin-x64 = "https://github.com/microsoft/vscode-cpptools/releases/download/v${version}/cpptools-macos-x64.vsix";
|
darwin-x64 = "https://github.com/microsoft/vscode-cpptools/releases/download/v${version}/cpptools-macos-x64.vsix";
|
||||||
darwin-arm64 = "https://github.com/microsoft/vscode-cpptools/releases/download/v${version}/cpptools-macos-arm64.vsix";
|
darwin-arm64 = "https://github.com/microsoft/vscode-cpptools/releases/download/v${version}/cpptools-macos-arm64.vsix";
|
||||||
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = lib.getAttr system {
|
url = lib.getAttr system {
|
||||||
x86_64-linux = "https://github.com/microsoft/vscode-cpptools/releases/download/v${version}/cpptools-linux-x64.vsix";
|
x86_64-linux = "https://github.com/microsoft/vscode-cpptools/releases/download/v${version}/cpptools-linux-x64.vsix";
|
||||||
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
x86_64-darwin = "sha256-P2LacAaCRXnsGUQOLuIyvfgxweeVHsDFTrAEuN/lBIQ=";
|
x86_64-darwin = "sha256-P2LacAaCRXnsGUQOLuIyvfgxweeVHsDFTrAEuN/lBIQ=";
|
||||||
aarch64-darwin = "sha256-P2LacAaCRXnsGUQOLuIyvfgxweeVHsDFTrAEuN/lBIQ=";
|
aarch64-darwin = "sha256-P2LacAaCRXnsGUQOLuIyvfgxweeVHsDFTrAEuN/lBIQ=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
|
Loading…
x
Reference in New Issue
Block a user