Skip to content

Commit

Permalink
[#][CI] nix: build dep
Browse files Browse the repository at this point in the history
  • Loading branch information
nykma committed Mar 21, 2024
1 parent 0633f99 commit a61aa9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
build:
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
naersk-lib = pkgs.callPackage naersk { };
in
{
defaultPackage = naersk-lib.buildPackage ./.;
defaultPackage = naersk-lib.buildPackage {
src = ./.;
buildInputs = with pkgs; [ pkg-config openssl ];
};
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt rust-analyzer pre-commit rustPackages.clippy pkg-config openssl ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
Expand Down

0 comments on commit a61aa9f

Please sign in to comment.