study-docker-repro-longevity/flake.nix

54 lines
1.3 KiB
Nix
Raw Normal View History

2024-07-09 18:36:38 +02:00
{
description = "Flake study docker longevity";
inputs = {
2024-07-11 13:35:54 +02:00
nixpkgs.url = "github:nixos/nixpkgs/23.11";
2024-07-09 18:36:38 +02:00
flake-utils.url = "github:numtide/flake-utils";
2024-07-20 15:41:56 +02:00
kapack.url = "github:oar-team/nur-kapack";
kapack.inputs.nixpkgs.follows = "nixpkgs";
2024-07-09 18:36:38 +02:00
};
2024-07-20 15:41:56 +02:00
outputs = { self, nixpkgs, flake-utils, kapack }:
2024-07-09 18:36:38 +02:00
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
2024-07-20 15:41:56 +02:00
kapkgs = kapack.packages.${system};
2024-07-09 18:36:38 +02:00
in
{
2024-08-29 10:32:54 +02:00
packages = {
ecg = pkgs.python3Packages.buildPythonPackage {
name = "ecg";
version = "0.0.1";
src = ./ecg;
propagatedBuildInputs = with (pkgs.python3Packages); [
requests
];
doCheck = false;
};
};
2024-07-09 18:36:38 +02:00
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
2024-07-11 13:35:54 +02:00
snakemake
gawk
gnused
nickel
graphviz
2024-07-20 15:41:56 +02:00
# TODO separate into several shells
2024-07-09 18:36:38 +02:00
(python3.withPackages (ps: with ps; [
requests
2024-07-20 15:41:56 +02:00
kapkgs.execo
2024-07-09 18:36:38 +02:00
]))
2024-08-29 10:32:54 +02:00
#(rWrapper.override { packages = with rPackages; [ tidyverse reshape2 ]; })
2024-07-09 18:36:38 +02:00
];
};
2024-08-01 17:49:41 +02:00
latex = pkgs.mkShell {
packages = with pkgs; [
texliveFull
rubber
];
};
2024-07-09 18:36:38 +02:00
};
});
}