mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
nightly pin for halloy
This commit is contained in:
parent
cf20e8b572
commit
4259dac0aa
1 changed files with 3 additions and 30 deletions
|
|
@ -1,23 +1,10 @@
|
||||||
self: super:
|
self: super:
|
||||||
let
|
let
|
||||||
rustNightly = (super.rust-bin.fromTarball {
|
# Use the standard stable rust platform provided by nixpkgs
|
||||||
src = super.fetchurl {
|
stableRustPlatform = super.rustPlatform;
|
||||||
url = "https://static.rust-lang.org/dist/2024-05-01/rust-nightly-x86_64-unknown-linux-gnu.tar.xz";
|
|
||||||
sha256 = "0000000000000000000000000000000000000000000000000000"; # Replace with the correct hash after the build fails
|
|
||||||
};
|
|
||||||
}).override {
|
|
||||||
extensions = [
|
|
||||||
"rust-src"
|
|
||||||
"rustc-dev"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
nightlyRustPlatform = super.makeRustPlatform {
|
|
||||||
cargo = rustNightly;
|
|
||||||
rustc = rustNightly;
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
halloy = nightlyRustPlatform.buildRustPackage rec {
|
halloy = stableRustPlatform.buildRustPackage rec {
|
||||||
pname = "halloy";
|
pname = "halloy";
|
||||||
version = "2025.6";
|
version = "2025.6";
|
||||||
|
|
||||||
|
|
@ -28,20 +15,6 @@ in
|
||||||
sha256 = "sha256-a95PmVEx4j9euqh+z9MvzvwfmWCGydeZjDCfYLOM4tI=";
|
sha256 = "sha256-a95PmVEx4j9euqh+z9MvzvwfmWCGydeZjDCfYLOM4tI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
RUSTC_BOOTSTRAP = 1;
|
|
||||||
|
|
||||||
RUSTFLAGS = "-Z allow-features=edition2024,avx512_target_feature,stdarch_x86_avx512,doc_cfg";
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
find . -name '*.rs' -exec sed -i '1i #![feature(avx512_target_feature,stdarch_x86_avx512,doc_cfg)]' {} \;
|
|
||||||
|
|
||||||
find . -name Cargo.toml -exec sh -c '
|
|
||||||
if ! grep -q "cargo-features" {}; then
|
|
||||||
sed -i "1i cargo-features = [\"edition2024\"]" {}
|
|
||||||
fi
|
|
||||||
' \;
|
|
||||||
'';
|
|
||||||
|
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
lockFile = src + "/Cargo.lock";
|
lockFile = src + "/Cargo.lock";
|
||||||
outputHashes = {
|
outputHashes = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue