From 2b41411802916e01d189315b19ee8866477394c1 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Mon, 28 Dec 2020 20:07:34 -0700 Subject: [PATCH] pkgs#purs: fix package --- pkgs/shells/zsh/purs/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/shells/zsh/purs/default.nix b/pkgs/shells/zsh/purs/default.nix index c8e7a7a..a376857 100644 --- a/pkgs/shells/zsh/purs/default.nix +++ b/pkgs/shells/zsh/purs/default.nix @@ -17,9 +17,14 @@ buildRustPackage { hash = "sha256-ETU7dDGVa2ggM+qoFgi8k4MJNuqb3kNCX9ZbEA4r5PM="; }; - buildInputs = [ openssl pkgconfig ]; + nativeBuildInputs = [ openssl pkgconfig ]; - cargoSha256 = "sha256-xdDSh4CvUHA8SWBZn21UnNRXZ/SU7RdfNcJjqyE9OXA="; + cargoSha256 = "sha256-FPxJuVyuuHdo2dNLhmJK6xXy12LJsbKNWBAo8pcuLDg="; + + preBuild = '' + export PKG_CONFIG_PATH=${openssl.dev}/lib/pkgconfig + export OPENSSL_DIRS=${openssl.out}:${openssl.dev} + ''; postInstall = '' mkdir -p $out/share/zsh/plugins/purs