diff --git a/go.nix b/go.nix new file mode 100644 index 0000000..d222715 --- /dev/null +++ b/go.nix @@ -0,0 +1,12 @@ +let + # Pinned nixpkgs, deterministic. Last updated: 2/12/21. + #pkgs = import (fetchTarball("https://github.com/NixOS/nixpkgs/archive/a58a0b5098f0c2a389ee70eb69422a052982d990.tar.gz")) {}; + # Rolling updates, not deterministic. + pkgs = import (fetchTarball "channel:nixpkgs-unstable") { }; +in pkgs.mkShell { + buildInputs = with pkgs; [ + go + gcc +]; + shellHook = ""; +} diff --git a/rust.nix b/rust.nix index e2da27a..0a721ff 100644 --- a/rust.nix +++ b/rust.nix @@ -3,7 +3,15 @@ let #pkgs = import (fetchTarball("https://github.com/NixOS/nixpkgs/archive/a58a0b5098f0c2a389ee70eb69422a052982d990.tar.gz")) {}; # Rolling updates, not deterministic. pkgs = import (fetchTarball "channel:nixpkgs-unstable") { }; + PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig"; in pkgs.mkShell { - buildInputs = [ pkgs.cargo pkgs.rustc pkgs.zsh pkgs.bacon ]; + buildInputs = with pkgs; [ + cargo + rustc + zsh + bacon + pkg-config + openssl +]; shellHook = ""; }