diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-09-10 12:41:44 +1200 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-09-10 12:41:44 +1200 |
| commit | c37c398a30f42da130142f0b2271d74b2c0465e1 (patch) | |
| tree | 74c716dac8db7dc6d64d389097fefa0dcc076544 /flake.nix | |
| parent | e8406706852969e8e6a3194efb4c069b5ffdbe21 (diff) | |
feat: downloading
Downloading is now done with reqwest.
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix index faeac58..9e3b4dc 100644 --- a/flake.nix +++ b/flake.nix @@ -10,8 +10,20 @@ flake-parts.lib.mkFlake {inherit inputs;} { systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"]; - perSystem = {pkgs, ...}: { + 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]; + }; }; }; } |