From f184cadd9965827398114958c5a99ae44f91e466 Mon Sep 17 00:00:00 2001 From: Sophie Forrest Date: Fri, 6 Sep 2024 14:22:04 +1200 Subject: chore: add flake.nix Package can now be built with Nix. --- nix/package.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nix/package.nix (limited to 'nix') 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; + }; +} -- cgit 1.4.1