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. --- flake.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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 {}; + }; + }; +} -- cgit 1.4.1