summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index faeac58..9e3b4dc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -10,8 +10,20 @@
 		flake-parts.lib.mkFlake {inherit inputs;} {
 			systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
 
-			perSystem = {pkgs, ...}: {
+			perSystem = {
+				lib,
+				pkgs,
+				...
+			}: {
 				packages.default = pkgs.callPackage ./nix/package.nix {};
+
+				devShells.default =
+					pkgs.mkShell {
+						nativeBuildInputs = let inherit (pkgs) openssl pkg-config; in [openssl openssl.dev pkg-config];
+
+						PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
+						LD_LIBRARY_PATH = lib.makeLibraryPath [pkgs.openssl];
+					};
 			};
 		};
 }