Skip to content

Commit

Permalink
get rid of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 6, 2024
1 parent 630cb87 commit a971469
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@
};

outputs = inputs: let
# Function to generate attributes for each system
forEachSystem = inputs.nixpkgs.lib.genAttrs inputs.nixpkgs.lib.platforms.all;

# Import nixpkgs for each system
pkgsFor = forEachSystem (
system:
import inputs.nixpkgs {
inherit system;
}
);

# Common Python packages used in both main package and devShell
mainPkgs = python3: with python3; [
poetry-core
pyperclip
Expand All @@ -30,7 +27,6 @@
click
];

# Additional packages for the devShell
devShellPkgs = python3: with python3; [
textual-dev
pre-commit-hooks
Expand All @@ -39,7 +35,6 @@
faker
];

# Native build inputs
nativeBuildInputs = pkgs: with pkgs; [
poetry
];
Expand All @@ -61,7 +56,6 @@
}
);

# Define default package for each system
defaultPackageFor = system:
pkgsFor.${system}.python312Packages.buildPythonPackage {
pname = "dooit";
Expand All @@ -85,15 +79,11 @@
};

in {
# Define the devShells for each system
devShells = forEachSystem devShellFor;

# Define the default package for each system
packages = forEachSystem (
system: {
default = defaultPackageFor system;
}
);
};
}

0 comments on commit a971469

Please sign in to comment.