seperate the nix environments into several files

This commit is contained in:
Quentin Guilloteau 2024-08-29 11:41:29 +02:00
parent d8d2a2e8e2
commit 31e2ff0ca5
5 changed files with 43 additions and 21 deletions

View File

@ -27,27 +27,10 @@
};
};
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
snakemake
gawk
gnused
nickel
graphviz
# TODO separate into several shells
(python3.withPackages (ps: with ps; [
requests
kapkgs.execo
]))
#(rWrapper.override { packages = with rPackages; [ tidyverse reshape2 ]; })
];
};
latex = pkgs.mkShell {
packages = with pkgs; [
texliveFull
rubber
];
};
default = import ./workflow/envs/snakemake.nix { inherit pkgs kapkgs; };
nickel = import ./workflow/envs/nickel.nix { inherit pkgs kapkgs; };
latex = import ./workflow/envs/latex.nix { inherit pkgs kapkgs; };
analysis = import ./workflow/envs/analysis.nix { inherit pkgs kapkgs; };
};
});
}

View File

@ -0,0 +1,12 @@
{ pkgs, kapkgs }:
pkgs.mkShell {
packages = with pkgs; [
(rWrapper.override {
packages = with rPackages; [
tidyverse
reshape2
];
})
];
}

8
workflow/envs/latex.nix Normal file
View File

@ -0,0 +1,8 @@
{ pkgs, kapkgs }:
pkgs.mkShell {
packages = with pkgs; [
texliveFull
rubber
];
}

7
workflow/envs/nickel.nix Normal file
View File

@ -0,0 +1,7 @@
{ pkgs, kapkgs }:
pkgs.mkShell {
packages = with pkgs; [
nickel
];
}

View File

@ -0,0 +1,12 @@
{ pkgs, kapkgs }:
pkgs.mkShell {
packages = with pkgs; [
snakemake
gawk
gnused
(python3.withPackages (ps: with ps; [
kapkgs.execo
]))
];
}