mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
hash
This commit is contained in:
parent
0f8077f224
commit
8c2ebdeba6
1 changed files with 15 additions and 28 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
self: super: {
|
self: super: {
|
||||||
halloy = super.stdenv.mkDerivation rec {
|
halloy = super.rustPlatform.buildRustPackage rec {
|
||||||
pname = "halloy";
|
pname = "halloy";
|
||||||
version = "2025.5";
|
version = "2025.5";
|
||||||
|
|
||||||
|
|
@ -10,39 +10,26 @@ self: super: {
|
||||||
sha256 = "sha256-cG/B6oiRkyoC5fK7bLdCDQYZymfMZspWXvOkqpwHRPk=";
|
sha256 = "sha256-cG/B6oiRkyoC5fK7bLdCDQYZymfMZspWXvOkqpwHRPk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Explicitly set the sourceRoot
|
# Use Rust 1.85 which has stable edition2024 support
|
||||||
sourceRoot = "source";
|
cargoToolchain = super.rust-bin.stable."1.85.0".default;
|
||||||
|
|
||||||
# Use Rust 1.85 or newer which has stable edition2024 support
|
# Don't try to fetch dependencies during build
|
||||||
nativeBuildInputs = with super; [
|
cargoLock = {
|
||||||
pkg-config
|
lockFile = src + "/Cargo.lock";
|
||||||
(rust-bin.stable."1.85.0".default)
|
outputHashes = {
|
||||||
];
|
"cryoglyph-0.1.0" = "sha256-X7S9jq8wU6g1DDNEzOtP3lKWugDnpopPDBK49iWvD4o=";
|
||||||
|
"dark-light-2.0.0" = "sha256-e826vF7iSkGUqv65TXHBUX04Kz2aaJJEW9f7JsAMaXE=";
|
||||||
|
"iced-0.14.0-dev" = "sha256-FEGk1zkXM9o+fGMoDtmi621G6pL+Yca9owJz4q2Lzks=";
|
||||||
|
"dpi-0.1.1" = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; # Replace with actual hash
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# No need to patch for edition2024 features as they're stable in 1.85
|
# Update edition in all Cargo.toml files
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Update Cargo.toml to use edition 2024
|
|
||||||
sed -i 's/edition = "2021"/edition = "2024"/' Cargo.toml
|
|
||||||
|
|
||||||
# Find and update edition in all subcrates
|
|
||||||
find . -name Cargo.toml -exec sed -i 's/edition = "2021"/edition = "2024"/' {} \;
|
find . -name Cargo.toml -exec sed -i 's/edition = "2021"/edition = "2024"/' {} \;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Build with cargo
|
nativeBuildInputs = with super; [ pkg-config ];
|
||||||
buildPhase = ''
|
|
||||||
# Make sure we're in the right directory
|
|
||||||
echo "Current directory: $(pwd)"
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
# Build the project
|
|
||||||
cargo build --release
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Install the binary
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp target/release/halloy $out/bin/
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = with super; [
|
buildInputs = with super; [
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue