diff options
author | Nicolas B. Pierron <nicolas.b.pierron@nbp.name> | 2018-09-18 14:56:05 +0200 |
---|---|---|
committer | Nicolas B. Pierron <nicolas.b.pierron@gmail.com> | 2018-09-18 15:51:51 +0200 |
commit | 07785b9d2fa561b24777fce9a3280023398a5ee1 (patch) | |
tree | 6ef44029ff22264eabc5e3a88ad375c063f86a66 | |
parent | 2704522fc3ee13928bc737f6488da66e2f7678b3 (diff) | |
download | nixlib-07785b9d2fa561b24777fce9a3280023398a5ee1.tar nixlib-07785b9d2fa561b24777fce9a3280023398a5ee1.tar.gz nixlib-07785b9d2fa561b24777fce9a3280023398a5ee1.tar.bz2 nixlib-07785b9d2fa561b24777fce9a3280023398a5ee1.tar.lz nixlib-07785b9d2fa561b24777fce9a3280023398a5ee1.tar.xz nixlib-07785b9d2fa561b24777fce9a3280023398a5ee1.tar.zst nixlib-07785b9d2fa561b24777fce9a3280023398a5ee1.zip |
Force usage of rust-cbindgen-0.6.2 or newer.
-rw-r--r-- | firefox-overlay.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/firefox-overlay.nix b/firefox-overlay.nix index ccdb587f49ef..4b22fbf2dc9c 100644 --- a/firefox-overlay.nix +++ b/firefox-overlay.nix @@ -157,6 +157,11 @@ in if builtins.compareVersions self.nodejs.name "nodejs-8.11.3" < 0 then self.nodejs-8_x else self.nodejs; + rust-cbindgen = + if !(self ? "rust-cbindgen") then self.rust-cbindgen-0_6_2 + else if builtins.compareVersions self.rust-cbindgen.name "rust-cbindgen-0.6.2" < 0 + then self.rust-cbindgen-0_6_2 else self.rust-cbindgen; + # Due to std::ascii::AsciiExt changes in 1.23, Gecko does not compile, so # use the latest Rust version before 1.23. # rust = (super.rustChannelOf { channel = "stable"; date = "2017-11-22"; }).rust; @@ -167,7 +172,7 @@ in # Set of packages which are frozen at this given revision of nixpkgs-mozilla. firefox-nightly-bin = super.callPackage ./pkgs/firefox-nightly-bin/default.nix { }; - # Use rust-cbindgen imported from Nixpkgs (August 2018) unless the current + # Use rust-cbindgen imported from Nixpkgs (September 2018) unless the current # version of Nixpkgs already packages a version of rust-cbindgen. - rust-cbindgen = super.rust-cbindgen or (super.callPackage ./pkgs/cbindgen { }); + rust-cbindgen-0_6_2 = super.callPackage ./pkgs/cbindgen { }; } |