Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
docs: add notes how to use getPackages function in flake.nix file
Browse files Browse the repository at this point in the history
  • Loading branch information
imincik committed Jun 12, 2023
1 parent 41a5bd7 commit 688c9e7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Example: `python39`. Default: `python3`
* postgresqlVersion: PostgreSQL version.
Example: `postgresql_12. `Default: `python3`
Example: `postgresql_12. `Default: `postgresql`
* overridesFile: file containing packages overrides definitions.
Default: false
Expand Down
9 changes: 9 additions & 0 deletions pkgs/geonixcli/templates/init/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@

pkgs = geonix.lib.getPackages {
inherit system nixpkgs geonix;

# Run 'geonix override' command to get overrides.nix template file and
# enable following line to start customizing Geonix packages.

# overridesFile = ./overrides.nix;

# Python and PostgreSQL versions to use for overrided packages.
# pythonVersion = "python3";
# postgresqlVersion = "postgresql";
};

geonixConfig = import ./geonix.nix { inherit pkgs geonix; };
Expand Down
9 changes: 9 additions & 0 deletions templates/python-web-app/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@

pkgs = geonix.lib.getPackages {
inherit system nixpkgs geonix;

# Run 'geonix override' command to get overrides.nix template file and
# enable following line to start customizing Geonix packages.

# overridesFile = ./overrides.nix;

# Python and PostgreSQL versions to use for overrided packages.
# pythonVersion = "python3";
# postgresqlVersion = "postgresql";
};

geonixConfig = import ./geonix.nix { inherit pkgs geonix; };
Expand Down
9 changes: 9 additions & 0 deletions templates/simple/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@

pkgs = geonix.lib.getPackages {
inherit system nixpkgs geonix;

# Run 'geonix override' command to get overrides.nix template file and
# enable following line to start customizing Geonix packages.

# overridesFile = ./overrides.nix;

# Python and PostgreSQL versions to use for overrided packages.
# pythonVersion = "python3";
# postgresqlVersion = "postgresql";
};

geonixConfig = import ./geonix.nix { inherit pkgs geonix; };
Expand Down

0 comments on commit 688c9e7

Please sign in to comment.