aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: f019bada6b8f9fa71a3ceed568d0166ce69da9f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  description = "BioNix paper";
  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 = nixpkgs.legacyPackages.${system};
      in {
        devShell = import ./shell.nix { inherit pkgs; };
        defaultPackage = if self ? rev then
          import ./default.nix {
            inherit (self) rev;
            inherit pkgs;
          }
        else
          throw "Refusing to build in dirty tree";
      });
}