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 22, 2022
1 parent d953265 commit 90dbad0
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
41 changes: 41 additions & 0 deletions flake.lock

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

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

outputs = {
self,
nixpkgs,
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 = pkgs.rustPlatform.buildRustPackage {
pname = "oura";
version = "v1.4.3";

src = self;

cargoSha256 = "sha256-GAmi8Wj0YCYKZ6+JuCfGE3KXiUkj3tiQQMkKWQ8OTJM=";
};
defaultPackage = self.packages.${system}.oura;
}
);
}

0 comments on commit 90dbad0

Please sign in to comment.