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 /flake.nix | |
| parent | 00f8270eaf318b12a42b517e1a514a2228a2d1bb (diff) | |
chore: add flake.nix
Package can now be built with Nix.
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 17 |
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 {}; + }; + }; +} |