Cli tool #9

Merged
Zacharias-Brohn merged 33 commits from cli-tool into main 2026-02-22 21:43:51 +01:00
2 changed files with 78 additions and 43 deletions
Showing only changes of commit f33f3f19a8 - Show all commits
+53 -43
View File
@@ -9,51 +9,61 @@
}; };
}; };
outputs = { outputs =
self, {
nixpkgs, self,
... nixpkgs,
} @ inputs: let ...
forAllSystems = fn: nixpkgs.lib.genAttrs nixpkgs.lib.platforms.linux (system: fn nixpkgs.legacyPackages.${system}); }@inputs:
in { let
formatter = forAllSystems (pkgs: pkgs.nixfmt); forAllSystems =
fn: nixpkgs.lib.genAttrs nixpkgs.lib.platforms.linux (system: fn nixpkgs.legacyPackages.${system});
in
{
formatter = forAllSystems (pkgs: pkgs.nixfmt);
packages = forAllSystems (pkgs: let packages = forAllSystems (
pythonEnv = pkgs.python3.withPackages (ps: [ pkgs:
ps.pillow let
ps.materialyoucolor pythonEnv = pkgs.python3.withPackages (ps: [
]); ps.pillow
in rec { ps.materialyoucolor
zshell = pkgs.callPackage ./nix { ]);
rev = self.rev or self.dirtyRev; in
stdenv = pkgs.clangStdenv; rec {
quickshell = inputs.quickshell.packages.${pkgs.stdenv.hostPlatform.system}.default.override { zshell = pkgs.callPackage ./nix {
withX11 = false; rev = self.rev or self.dirtyRev;
withI3 = false; stdenv = pkgs.clangStdenv;
}; quickshell = inputs.quickshell.packages.${pkgs.stdenv.hostPlatform.system}.default.override {
app2unit = pkgs.callPackage ./nix/app2unit.nix {inherit pkgs;}; withX11 = false;
withI3 = false;
};
app2unit = pkgs.callPackage ./nix/app2unit.nix { inherit pkgs; };
zshell-cli = pkgs.callPackage ./nix/zshell-cli.nix { inherit pkgs; };
inherit pythonEnv; inherit pythonEnv;
}; };
default = zshell; default = zshell;
}); }
);
devShells = forAllSystems (pkgs: { devShells = forAllSystems (pkgs: {
default = let default =
shell = self.packages.${pkgs.stdenv.hostPlatform.system}.zshell; let
in shell = self.packages.${pkgs.stdenv.hostPlatform.system}.zshell;
pkgs.mkShell.override {stdenv = shell.stdenv;} { in
inputsFrom = [ pkgs.mkShell.override { stdenv = shell.stdenv; } {
shell inputsFrom = [
shell.Plugins shell
]; shell.Plugins
packages = with pkgs; [ ];
material-symbols packages = with pkgs; [
rubik material-symbols
nerd-fonts.caskaydia-cove rubik
]; nerd-fonts.caskaydia-cove
}; ];
}); };
}; });
};
} }
+25
View File
@@ -0,0 +1,25 @@
{
python3,
}:
python3.pkgs.buildPythonApplication {
pname = "zshell-cli";
version = "0.1.0";
src = ./cli/.;
pyproject = true;
build-system = with python3.pkgs; [
hatch-vcs
hatchling
];
dependencies = with python3.pkgs; [
materialyoucolor
pillow
];
pythonImportsCheck = [ "zshell" ];
nativeBuildInputs = [ installShellFiles ];
SETUPTOOLS_SCM_PRETEND_VERSION = 1;
}