Skip to content

Commit

Permalink
convert to a flake
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jun 12, 2023
1 parent f5d5dc9 commit 61ea8d1
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 0 deletions.
94 changes: 94 additions & 0 deletions flake.lock

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

38 changes: 38 additions & 0 deletions flake.nix
@@ -0,0 +1,38 @@
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};

outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import inputs.nixpkgs { inherit system; };

naersk = pkgs.callPackage inputs.naersk {};
in {
defaultPackage = naersk.buildPackage {
src = ./.;
};

devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
git

# Rust
cargo
rustPackages.clippy
rustPackages.rustfmt
rustc

# Benchmarking + Optimization
hyperfine

# Testing
jq
];
};
}
);
}

0 comments on commit 61ea8d1

Please sign in to comment.