Skip to content

Instantly share code, notes, and snippets.

@joepie91
Created February 1, 2019 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joepie91/dc41164fa15c5f07381b19add7a8d74b to your computer and use it in GitHub Desktop.
Save joepie91/dc41164fa15c5f07381b19add7a8d74b to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
makePackageConfigPath = stdenv.lib.makeSearchPathOutput "dev" "lib/pkgconfig";
in stdenv.mkDerivation rec {
name = "rust-im-dev-env";
buildInputs = [
pkgconfig
openssl
];
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath buildInputs;
PKG_CONFIG_PATH = makePackageConfigPath buildInputs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment