mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
kord: fix build due to changed compiler features
The rust feature `no_coverage` has been replaced by one called
`coverage_attribute` (and respective `#[no_coverage]` declarations
must now be annotated as `#[coverage(off)]`. Because of this, the
build of `kord` fails on current versions of the Rust compiler.
Upstream has already resolved these issues [1], but there haven't
been any new releases since these fixes have been committed to
trunk. This change pulls the respective patch in using `fetchpatch`
for now -- this patch should be removable with the next release.
[1]: fa9bb979b1
This commit is contained in:
parent
5d31883bce
commit
c5bfa2626e
|
@ -2,6 +2,7 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, darwin
|
, darwin
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, alsa-lib
|
, alsa-lib
|
||||||
|
@ -28,6 +29,17 @@ rustPlatform.buildRustPackage rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fixes build issues due to refactored Rust compiler feature annotations.
|
||||||
|
# Should be removable with the next release after v. 0.6.1.
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fix-rust-features.patch";
|
||||||
|
url = "https://github.com/twitchax/kord/commit/fa9bb979b17d77f54812a915657c3121f76c5d82.patch";
|
||||||
|
hash = "sha256-XQu9P7372J2dHWzvpvbPtALS0Bh8EC+J1EyG3qlak2M=";
|
||||||
|
excludes = [ "Cargo.*" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]
|
||||||
++ lib.optionals stdenv.isDarwin [ rustPlatform.bindgenHook ];
|
++ lib.optionals stdenv.isDarwin [ rustPlatform.bindgenHook ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue