study-docker-repro-longevity/flake.nix
2024-08-29 10:32:54 +02:00

54 lines
1.3 KiB
Nix

{
description = "Flake study docker longevity";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/23.11";
flake-utils.url = "github:numtide/flake-utils";
kapack.url = "github:oar-team/nur-kapack";
kapack.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, kapack }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
kapkgs = kapack.packages.${system};
in
{
packages = {
ecg = pkgs.python3Packages.buildPythonPackage {
name = "ecg";
version = "0.0.1";
src = ./ecg;
propagatedBuildInputs = with (pkgs.python3Packages); [
requests
];
doCheck = false;
};
};
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
];
};
};
});
}