diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-09-10 12:41:44 +1200 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-09-10 12:41:44 +1200 |
| commit | c37c398a30f42da130142f0b2271d74b2c0465e1 (patch) | |
| tree | 74c716dac8db7dc6d64d389097fefa0dcc076544 /nix/package.nix | |
| parent | e8406706852969e8e6a3194efb4c069b5ffdbe21 (diff) | |
feat: downloading
Downloading is now done with reqwest.
Diffstat (limited to 'nix/package.nix')
| -rw-r--r-- | nix/package.nix | 8 |
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."; |