summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nix/package.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nix/package.nix b/nix/package.nix
index 4ef9ee6..0736c62 100644
--- a/nix/package.nix
+++ b/nix/package.nix
@@ -1,5 +1,6 @@
{
lib,
+ pkgs,
rustPlatform,
...
}:
@@ -13,7 +14,12 @@ rustPlatform.buildRustPackage {
path = ../.;
};
- cargoHash = "sha256-Smg9lDuh2IkMTumVJtjPm3hXnIJ+POmNe5z6xPcQCXI=";
+ cargoHash = "sha256-DU0qxv+KnVa+2SQvQ+CwcpNUc38ud9gwXXoCHC2A0hA=";
+
+ 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];
meta = with lib; {
description = "Scraper that can parse all of Victoria University of Wellington's courses, and output them in a computer-readable JSON file.";