refactor(nix): rework package management
This commit is contained in:
parent
698e6fce01
commit
7fbf509183
2 changed files with 15 additions and 17 deletions
|
@ -9,7 +9,7 @@ _: {
|
||||||
{
|
{
|
||||||
devShells = {
|
devShells = {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
nativeBuildInputs = config.buildPackages ++ config.develPackages ++ config.deployPackages;
|
nativeBuildInputs = config.develPackages;
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
ln -snf ${config.pelicanplugins} plugins
|
ln -snf ${config.pelicanplugins} plugins
|
||||||
ln -snf ${config.pelicantheme} theme
|
ln -snf ${config.pelicantheme} theme
|
||||||
|
|
|
@ -19,12 +19,11 @@ in
|
||||||
buildPackages = mkOption {
|
buildPackages = mkOption {
|
||||||
description = mdDoc "Python package used in the project";
|
description = mdDoc "Python package used in the project";
|
||||||
type = types.listOf types.package;
|
type = types.listOf types.package;
|
||||||
default = with pkgs; [
|
default = ( with pkgs.python311Packages; [
|
||||||
python311
|
markdown-include
|
||||||
python311Packages.markdown-include
|
pelican
|
||||||
python311Packages.pelican
|
typogrify
|
||||||
python311Packages.typogrify
|
]);
|
||||||
];
|
|
||||||
};
|
};
|
||||||
develPackages = mkOption {
|
develPackages = mkOption {
|
||||||
description = mdDoc "Python package used to development";
|
description = mdDoc "Python package used to development";
|
||||||
|
@ -33,19 +32,18 @@ in
|
||||||
convco
|
convco
|
||||||
go-task
|
go-task
|
||||||
lefthook
|
lefthook
|
||||||
python3Packages.invoke
|
rsync
|
||||||
python3Packages.livereload
|
|
||||||
shellcheck
|
shellcheck
|
||||||
shfmt
|
shfmt
|
||||||
typos
|
typos
|
||||||
];
|
]
|
||||||
};
|
++ ( with pkgs.python311Packages; [
|
||||||
deployPackages = mkOption {
|
markdown-include
|
||||||
description = mdDoc "Package use to deploy";
|
pelican
|
||||||
type = types.listOf types.package;
|
typogrify
|
||||||
default = with pkgs; [
|
livereload
|
||||||
rsync
|
invoke
|
||||||
];
|
]);
|
||||||
};
|
};
|
||||||
pelicanplugins = mkOption {
|
pelicanplugins = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue