Skip to content

Commit

Permalink
Add PKG_CONFIG_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Dec 9, 2024
1 parent 7d41316 commit 2ec9914
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
taplo
just
openssl
pkgconfig
pkg-config
;

nixfmt = nixpkgs.nixfmt-rfc-style;
Expand All @@ -116,31 +116,31 @@
shell-deps = (builtins.attrValues starknet-pkgs) ++ (builtins.attrValues tools) ++ mac-deps;
in
{
packages = {
inherit
starknet-devnet
cairo
scarb
rust
rust-nightly
rust-wasm
;
} // tools // starknet-pkgs;
packages =
{
inherit
starknet-devnet
cairo
scarb
rust
rust-nightly
rust-wasm
;
}
// tools
// starknet-pkgs;

devShells = {
default = nixpkgs.mkShell { buildInputs = shell-deps; };

rust = nixpkgs.mkShell {
buildInputs = [ rust ] ++ shell-deps;

shellHook = ''
export PKG_CONFIG_PATH="${nixpkgs.openssl.dev}/lib/pkgconfig";
'';
PKG_CONFIG_PATH = "${nixpkgs.openssl.dev}/lib/pkgconfig";
buildInputs = [ rust ] ++ (builtins.attrValues tools);
};

rust-nightly = nixpkgs.mkShell { buildInputs = [ rust-nightly ] ++ shell-deps; };
rust-nightly = nixpkgs.mkShell { buildInputs = [ rust-nightly ] ++ (builtins.attrValues tools); };

rust-wasm = nixpkgs.mkShell { buildInputs = [ rust-wasm ] ++ shell-deps; };
rust-wasm = nixpkgs.mkShell { buildInputs = [ rust-wasm ] ++ (builtins.attrValues tools); };
};

formatter = tools.nixfmt;
Expand Down

0 comments on commit 2ec9914

Please sign in to comment.