diff options
author | Justin Bedo <cu@cua0.org> | 2020-11-02 11:17:05 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2020-11-02 14:45:34 +1100 |
commit | 8aaecc9093be8531c7c25e24b6b2464536458eee (patch) | |
tree | 3c1395d0ade06a30c57ac01ed90f3a045cc44843 /flake.nix |
init
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f019bad --- /dev/null +++ b/flake.nix @@ -0,0 +1,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"; + }); +} |