summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorSophie Forrest <git@sophieforrest.com>2024-09-10 12:41:44 +1200
committerSophie Forrest <git@sophieforrest.com>2024-09-10 12:41:44 +1200
commitc37c398a30f42da130142f0b2271d74b2c0465e1 (patch)
tree74c716dac8db7dc6d64d389097fefa0dcc076544 /nix
parente8406706852969e8e6a3194efb4c069b5ffdbe21 (diff)
feat: downloading
Downloading is now done with reqwest.
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.";