Reformat nix source file using nixfmt

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 2e4a532958
commit 9201969c1b
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
220 changed files with 3169 additions and 2487 deletions

View file

@ -5,51 +5,56 @@
url = "github:numtide/flake-utils";
};
};
outputs = {
self,
flake-utils,
nixpkgs,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
};
in {
formatter = pkgs.alejandra;
checks = {
inherit (self.packages.${system}) default;
};
devShells.default = pkgs.mkShell {
inputsFrom = [] ++ (builtins.attrValues self.checks.${system});
packages = with pkgs; [
clang-tools
];
};
packages = rec {
cxx-demo = pkgs.stdenv.mkDerivation {
pname = "cxx-demo";
version = "unstable";
src = ./.;
strictDeps = true;
nativeBuildInputs = with pkgs; [
xmake
gnumake
];
preConfigure = ''
xmake config -m release
xmake project -k xmakefile
'';
env = {
INSTALLDIR = "${placeholder "out"}";
NIX_DEBUG = 1;
V = 1;
D = 1;
};
outputs =
{
self,
flake-utils,
nixpkgs,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
};
default = cxx-demo;
};
});
in
{
formatter = pkgs.alejandra;
checks = {
inherit (self.packages.${system}) default;
};
devShells.default = pkgs.mkShell {
inputsFrom = [ ] ++ (builtins.attrValues self.checks.${system});
packages = with pkgs; [
clang-tools
];
};
packages = rec {
cxx-demo = pkgs.stdenv.mkDerivation {
pname = "cxx-demo";
version = "unstable";
src = ./.;
strictDeps = true;
nativeBuildInputs = with pkgs; [
xmake
gnumake
];
preConfigure = ''
xmake config -m release
xmake project -k xmakefile
'';
env = {
INSTALLDIR = "${placeholder "out"}";
NIX_DEBUG = 1;
V = 1;
D = 1;
};
};
default = cxx-demo;
};
}
);
nixConfig = {
keepOutputs = true;
};