Skip to content

Commit

Permalink
chore: add flake with nix package
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacman99 committed Jun 24, 2022
1 parent d953265 commit 8b73c1e
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 0 deletions.
109 changes: 109 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
inputs = {
nixpkgs.url = "nixpkgs";
crane.url = "github:ipetkov/crane";
utils.url = "github:numtide/flake-utils";
};

outputs = {
self,
nixpkgs,
crane,
utils,
...
}: let
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux"];
in
utils.lib.eachSystem supportedSystems
(
system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.oura = crane.lib.${system}.buildPackage {
src = self;
};
packages.default = self.packages.${system}.oura;
}
);
}

0 comments on commit 8b73c1e

Please sign in to comment.