summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
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 {};
+			};
+		};
+}