Skip to content

Commit

Permalink
fix: define libssl in flake
Browse files Browse the repository at this point in the history
  • Loading branch information
heydoyouknowme0 committed Jul 18, 2024
1 parent 2ae4392 commit c96e3cb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
let
projectName = "mindmap";

pkgs = nixpkgs.legacyPackages.${system};
openssl = pkgs.openssl;
libldap = pkgs.openldap;

flakeboxLib = flakebox.lib.${system} {
config = {
github.ci.buildOutputs = [ ".#ci.${projectName}" ];
Expand All @@ -39,7 +43,9 @@
craneLib = (craneLib'.overrideArgs {
pname = projectName;
src = buildSrc;
nativeBuildInputs = [ ];
nativeBuildInputs = [ pkgs.pkg-config openssl libldap ];
buildInputs = [ openssl libldap ];
cargoBuildOptions = [ "--features=vendored" ];
});
in
{
Expand All @@ -52,7 +58,11 @@

legacyPackages = multiBuild;

devShells = flakeboxLib.mkShells { };
devShells = flakeboxLib.mkShells {
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [ openssl libldap ];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ openssl libldap ];
};
}
);
}

0 comments on commit c96e3cb

Please sign in to comment.