study-docker-repro-longevity/flake.nix

37 lines
1.1 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 = 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; };
2024-07-09 18:36:38 +02:00
};
});
}