summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 6db06c1c4cb3f5d032e67119b782f336c5d35c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  inputs.nixpkgs.url = "github:nixos/nixpkgs";
  inputs.flake-utils.url = "github:numtide/flake-utils";

  outputs = {
    self,
    nixpkgs,
    flake-utils,
  }:
    flake-utils.lib.eachDefaultSystem (system: let
      pkgs = import nixpkgs {inherit system;};
    in rec {
      packages = rec {
        lib = pkgs.callPackage ./. {};
        R = pkgs.callPackage ./R {
          inherit (pkgs) R;
          inherit (pkgs.rPackages) buildRPackage;
          coda-pca = lib;
        };
        haskell = pkgs.callPackage ./haskell.nix {
          inherit (pkgs.haskellPackages) mkDerivation base inline-c vector hmatrix;
          inherit (pkgs) lib;
        };
      };
      defaultPackage = packages.lib;
    });
}