mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
Merge pull request #291930 from mfrischknecht/fix-kord-build
kord: fix build due to changed compiler features
This commit is contained in:
commit
0f2ad05c2f
|
@ -2,6 +2,7 @@
|
|||
, stdenv
|
||||
, darwin
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, 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 ]
|
||||
++ lib.optionals stdenv.isDarwin [ rustPlatform.bindgenHook ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue