-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
flake.nix
39 lines (35 loc) · 1005 Bytes
/
flake.nix
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
28
29
30
31
32
33
34
35
36
37
38
39
{
description = "IQ-TREE 2";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
outputs =
{ self
, flake-utils
, nixpkgs
}:
flake-utils.lib.eachDefaultSystem (
system:
let
# # For Nixpkgs and the NUR repository, the following two forms are
# # equivalent because the flake just imports the base directory.
pkgs = nixpkgs.legacyPackages.${system};
# pkgs = import nixpkgs {
# inherit system;
# config = { allowUnfree = true; };
# };
in
{
devShell = pkgs.mkShell {
packages = with pkgs; [
# See https://github.com/NixOS/nixpkgs/issues/59209.
bashInteractive
];
nativeBuildInputs = with pkgs; [ cmake ];
buildInputs = with pkgs; [ boost eigen zlib ];
cmakeFlags = [
"-DIQTREE_FLAGS=omp"
];
};
}
);
}