blob: 9e3b4dc9f4792fe8155a22b79ad0509f3b14c860 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{
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 = {
lib,
pkgs,
...
}: {
packages.default = pkgs.callPackage ./nix/package.nix {};
devShells.default =
pkgs.mkShell {
nativeBuildInputs = let inherit (pkgs) openssl pkg-config; in [openssl openssl.dev pkg-config];
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
LD_LIBRARY_PATH = lib.makeLibraryPath [pkgs.openssl];
};
};
};
}
|