From c37c398a30f42da130142f0b2271d74b2c0465e1 Mon Sep 17 00:00:00 2001 From: Sophie Forrest Date: Tue, 10 Sep 2024 12:41:44 +1200 Subject: feat: downloading Downloading is now done with reqwest. --- nix/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nix/package.nix') 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."; -- cgit 1.4.1