diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-09-06 14:22:04 +1200 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-09-06 14:22:04 +1200 |
| commit | f184cadd9965827398114958c5a99ae44f91e466 (patch) | |
| tree | f74b39d51dbf0bc7b62b2ebefead10c41dc473a4 /nix/package.nix | |
| parent | 00f8270eaf318b12a42b517e1a514a2228a2d1bb (diff) | |
chore: add flake.nix
Package can now be built with Nix.
Diffstat (limited to '')
| -rw-r--r-- | nix/package.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nix/package.nix b/nix/package.nix new file mode 100644 index 0000000..4ef9ee6 --- /dev/null +++ b/nix/package.nix @@ -0,0 +1,23 @@ +{ + lib, + rustPlatform, + ... +}: +rustPlatform.buildRustPackage { + pname = "vuw_course_scraper"; + version = "0.1.0"; + + src = + builtins.path { + name = "vuw_course_scraper"; + path = ../.; + }; + + cargoHash = "sha256-Smg9lDuh2IkMTumVJtjPm3hXnIJ+POmNe5z6xPcQCXI="; + + 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; + }; +} |