Skip to content

Commit

Permalink
Update flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed Jul 8, 2023
1 parent cc020a2 commit eb48810
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
flake-utils.url = "github:numtide/flake-utils";
};

outputs = inputs: with inputs;
outputs = { nixpkgs, flake-utils, rust-overlay, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
code = pkgs.callPackage ./. { inherit nixpkgs system rust-overlay; };
in {
in rec {
packages = {
race-transactor = code.race-transactor;
race-cli = code.race-cli;
Expand All @@ -25,10 +28,13 @@
default = packages.all;

devShell = pkgs.mkShell {
buildInputs = with pkgs; [
openssl
rustc
nativeBuildInputs = with pkgs; [
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" ];
targets = [ "wasm32-unknown-unknown" ];
})
cargo
openssl
pkg-config
rust-analyzer
simple-http-server
Expand Down

0 comments on commit eb48810

Please sign in to comment.