mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
cbfmt: fix compilation with new clang
This commit is contained in:
parent
792a7ddec9
commit
2e38d63c37
@ -1,4 +1,4 @@
|
||||
{ lib, rustPlatform, fetchFromGitHub, testers, cbfmt }:
|
||||
{ lib, rustPlatform, fetchFromGitHub, stdenv, testers, cbfmt }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "cbfmt";
|
||||
@ -13,6 +13,9 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoSha256 = "sha256-6oZCpjQ8t/QLFhEtF7td8KGI/kFE04pg7OELutsrJKo=";
|
||||
|
||||
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
|
||||
env = lib.optionalAttrs stdenv.cc.isClang { NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; };
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = cbfmt;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user