summary refs log tree commit diff
path: root/nix/package.nix
blob: 95ce66b5463c202973024e6697049d1d1c9ed432 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  lib,
  pkgs,
  rustPlatform,
  ...
}:
rustPlatform.buildRustPackage {
  pname = "vuw_course_scraper";
  version = "0.1.0";

  src = builtins.path {
    name = "vuw_course_scraper";
    path = ../.;
  };

  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.";
    homepage = "https://codeberg.org/sophieforrest/vuw_course_scraper";
    license = licenses.agpl3Plus;
  };
}