summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorSophie Forrest <git@sophieforrest.com>2024-09-06 14:22:04 +1200
committerSophie Forrest <git@sophieforrest.com>2024-09-06 14:22:04 +1200
commitf184cadd9965827398114958c5a99ae44f91e466 (patch)
treef74b39d51dbf0bc7b62b2ebefead10c41dc473a4 /flake.nix
parent00f8270eaf318b12a42b517e1a514a2228a2d1bb (diff)
chore: add flake.nix
Package can now be built with Nix.
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..faeac58
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,17 @@
+{
+	description = "Scraper that can parse all of Victoria University of Wellington's courses, and output them in a computer-readable JSON file.";
+
+	inputs = {
+		flake-parts.url = "github:hercules-ci/flake-parts";
+		nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+	};
+
+	outputs = inputs @ {flake-parts, ...}:
+		flake-parts.lib.mkFlake {inherit inputs;} {
+			systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
+
+			perSystem = {pkgs, ...}: {
+				packages.default = pkgs.callPackage ./nix/package.nix {};
+			};
+		};
+}