diff options
author | Justin Bedo <cu@cua0.org> | 2021-07-29 16:47:54 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2021-07-29 16:47:54 +1000 |
commit | 6bd9f1715fc2e1d4548046e3ce2bd91d64625a1e (patch) | |
tree | bb557c5ab200f0f7a691e737b59b5044177e0c04 /flake.nix | |
parent | 7c29ef494f974b457bfef6a5af7d37fa03bb7952 (diff) |
convert nix expressions to flakes
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..51c9048 --- /dev/null +++ b/flake.nix @@ -0,0 +1,15 @@ +{ + inputs.flake-utils.url = "github:numtide/flake-utils"; + inputs.biohazard = { + url = "git+https://bitbucket.org/ustenzel/biohazard/"; + flake = false; + }; + + outputs = { self, nixpkgs, flake-utils, biohazard }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; + in { + devShell = pkgs.callPackage ./shell.nix { biohazardSrc = biohazard; }; + defaultPackage = pkgs.callPackage ./default.nix { biohazardSrc = biohazard; }; + }); +} |