Revert "vector: make some more options override-able"
See the comments in that commit for more information. This reverts commit b964f4b421ff4406667ee66db177def03a3b2158.
This commit is contained in:
parent
e87cfa0488
commit
1446f6ca38
@ -6,31 +6,20 @@
|
|||||||
(if stdenv.isAarch64
|
(if stdenv.isAarch64
|
||||||
then [ "jemallocator" ]
|
then [ "jemallocator" ]
|
||||||
else [ "leveldb" "jemallocator" ])
|
else [ "leveldb" "jemallocator" ])
|
||||||
|
|
||||||
# Unfortunately, buildRustPackage does not really support using overrideAttrs
|
|
||||||
# on the underlying fields, because it doesn't pass them to stdenv.mkDerivation
|
|
||||||
# as an attr. making it a parameter is the only way to do so. sigh
|
|
||||||
|
|
||||||
, version ? "0.5.0"
|
|
||||||
|
|
||||||
, srcRef ? {
|
|
||||||
rev = "refs/tags/v${version}";
|
|
||||||
sha256 = "0niyxlvphn3awrpfh1hbqy767cckgjzyjrkqjxj844czxhh1hhff";
|
|
||||||
}
|
|
||||||
|
|
||||||
, cargoSha256 ? "0bdgan891hrah54g6aaysqizkxrfsbidnxihai0i7h7knzq9gsk5"
|
|
||||||
, patches ? []
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "vector";
|
pname = "vector";
|
||||||
inherit version cargoSha256 patches;
|
version = "0.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "timberio";
|
owner = "timberio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
inherit (srcRef) rev sha256;
|
rev = "refs/tags/v${version}";
|
||||||
|
sha256 = "0niyxlvphn3awrpfh1hbqy767cckgjzyjrkqjxj844czxhh1hhff";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "0bdgan891hrah54g6aaysqizkxrfsbidnxihai0i7h7knzq9gsk5";
|
||||||
buildInputs = [ openssl pkgconfig protobuf ]
|
buildInputs = [ openssl pkgconfig protobuf ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin [ Security libiconv ];
|
++ stdenv.lib.optional stdenv.isDarwin [ Security libiconv ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user