Cli tool #9
@@ -9,21 +9,28 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs =
|
||||||
|
{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
}@inputs:
|
||||||
forAllSystems = fn: nixpkgs.lib.genAttrs nixpkgs.lib.platforms.linux (system: fn nixpkgs.legacyPackages.${system});
|
let
|
||||||
in {
|
forAllSystems =
|
||||||
|
fn: nixpkgs.lib.genAttrs nixpkgs.lib.platforms.linux (system: fn nixpkgs.legacyPackages.${system});
|
||||||
|
in
|
||||||
|
{
|
||||||
formatter = forAllSystems (pkgs: pkgs.nixfmt);
|
formatter = forAllSystems (pkgs: pkgs.nixfmt);
|
||||||
|
|
||||||
packages = forAllSystems (pkgs: let
|
packages = forAllSystems (
|
||||||
|
pkgs:
|
||||||
|
let
|
||||||
pythonEnv = pkgs.python3.withPackages (ps: [
|
pythonEnv = pkgs.python3.withPackages (ps: [
|
||||||
ps.pillow
|
ps.pillow
|
||||||
ps.materialyoucolor
|
ps.materialyoucolor
|
||||||
]);
|
]);
|
||||||
in rec {
|
in
|
||||||
|
rec {
|
||||||
zshell = pkgs.callPackage ./nix {
|
zshell = pkgs.callPackage ./nix {
|
||||||
rev = self.rev or self.dirtyRev;
|
rev = self.rev or self.dirtyRev;
|
||||||
stdenv = pkgs.clangStdenv;
|
stdenv = pkgs.clangStdenv;
|
||||||
@@ -31,19 +38,22 @@
|
|||||||
withX11 = false;
|
withX11 = false;
|
||||||
withI3 = false;
|
withI3 = false;
|
||||||
};
|
};
|
||||||
app2unit = pkgs.callPackage ./nix/app2unit.nix {inherit pkgs;};
|
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 =
|
||||||
|
let
|
||||||
shell = self.packages.${pkgs.stdenv.hostPlatform.system}.zshell;
|
shell = self.packages.${pkgs.stdenv.hostPlatform.system}.zshell;
|
||||||
in
|
in
|
||||||
pkgs.mkShell.override {stdenv = shell.stdenv;} {
|
pkgs.mkShell.override { stdenv = shell.stdenv; } {
|
||||||
inputsFrom = [
|
inputsFrom = [
|
||||||
shell
|
shell
|
||||||
shell.Plugins
|
shell.Plugins
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user