Add shell.nix

This commit is contained in:
D. Scott Boggs 2023-06-04 11:46:24 -04:00
parent b3e3575f84
commit a8dcd93bf4
1 changed files with 12 additions and 0 deletions

12
shell.nix Normal file
View File

@ -0,0 +1,12 @@
# nix requires using nix-shell since native-tls requires pkg-config to
# configure openssl
#
# See also:
# https://nixos.wiki/wiki/C#pkg-config
# https://github.com/NixOS/nixpkgs/issues/64530
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "mastodon-async";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
}