Skip to content

Commit

Permalink
chore: specify nix packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush Jha committed Dec 16, 2024
1 parent 24175e9 commit 9f7723c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
in
{
defaultPackage = naersk-lib.buildPackage ./.;
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
}
{
defaultPackage = naersk-lib.buildPackage ./.;
packages = rec {
wasmenv = naersk-lib.buildPackage ./.;
};
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
}
);
}

0 comments on commit 9f7723c

Please sign in to comment.