mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ cargo, fetchFromGitHub, makeWrapper, pkg-config, rustPlatform, stdenv, gcc, Security, cmake }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "evcxr";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "evcxr";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-33XeepqwYmTMcObroPTuxykYuM9qYI1+LV5lZIFSomg=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-tjCID3YeGkxcq/LqJDMHGNpv1MCXKtcLlDnNkFwx1zU=";
|
|
|
|
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper cmake ];
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
|
postInstall = let
|
|
wrap = exe: ''
|
|
wrapProgram $out/bin/${exe} \
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [ cargo gcc ]} \
|
|
--set-default RUST_SRC_PATH "$RUST_SRC_PATH"
|
|
'';
|
|
in ''
|
|
${wrap "evcxr"}
|
|
${wrap "evcxr_jupyter"}
|
|
rm $out/bin/testing_runtime
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An evaluation context for Rust";
|
|
homepage = "https://github.com/google/evcxr";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ protoben ma27 ];
|
|
};
|
|
}
|