Compare commits

...

1 Commits

Author SHA1 Message Date
tux
352eb99568 style: format code 2026-09-11 02:10:39 +05:30
2 changed files with 102 additions and 107 deletions

View File

@@ -15,14 +15,12 @@
};
};
outputs =
{
outputs = {
self,
nixpkgs,
quickshell,
treefmt-nix,
}:
let
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
@@ -37,13 +35,12 @@
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
alejandra.enable = true;
qmlformat.enable = true;
clang-format.enable = true;
};
};
in
rec {
in rec {
formatter.${system} = treefmtEval.config.build.wrapper;
packages.${system} = {

View File

@@ -10,34 +10,32 @@
cava,
wallust,
nerd-fonts,
extraRuntimeDeps ? [ ],
}:
let
extraRuntimeDeps ? [],
}: let
version = "0.1.0";
runtimeDeps = [
runtimeDeps =
[
cava
wallust
]
++ extraRuntimeDeps;
fontconfig = makeFontsConf {
fontDirectories = [ nerd-fonts.fira-code ];
fontDirectories = [nerd-fonts.fira-code];
};
# Unlike lib.fileset, this keeps untracked files (the flake only sees
# git-tracked paths) while dropping build artifacts.
src = lib.cleanSourceWith {
src = lib.cleanSource ./.;
filter =
path: _:
let
filter = path: _: let
name = baseNameOf path;
in
!(name == "dist" || name == "result" || name == "result-bin" || lib.hasPrefix "build" name);
};
in
stdenv.mkDerivation {
stdenv.mkDerivation {
inherit version src;
pname = "tshell";
@@ -79,4 +77,4 @@ stdenv.mkDerivation {
mainProgram = "tshell";
platforms = lib.platforms.linux;
};
}
}