Skip to content

Commit

Permalink
Fix bad dependency (hacspec#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp authored Jun 12, 2023
1 parent 57db077 commit 11d4d3f
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 1 deletion.
112 changes: 112 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
crane = {
url = "github:ipetkov/crane";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
rust-overlay.follows = "crane/rust-overlay";
};

outputs = {flake-utils, nixpkgs, rust-overlay, crane, ...}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [rust-overlay.overlays.default];
};
rustc = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
craneLib = (crane.mkLib pkgs).overrideToolchain rustc;
in rec {
devShells = {
default = pkgs.mkShell {
packages = [
pkgs.cargo-expand
pkgs.openssl.dev
pkgs.pkg-config
pkgs.rust-analyzer
rustc
];
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
};
};
}
);
}
2 changes: 1 addition & 1 deletion pasta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2018"
path = "src/pasta.rs"

[dependencies]
hacspec-lib = { path = "../../lib" }
hacspec-lib = { git = "https://github.com/hacspec/hacspec.git" }

[dev-dependencies]
quickcheck = "1"
Expand Down

0 comments on commit 11d4d3f

Please sign in to comment.