Added the start of a package definition in flake.nix

This commit is contained in:
Werner Kroneman 2023-12-10 18:51:06 +01:00
parent 3e86a4706f
commit 781441cc13
3 changed files with 23 additions and 3 deletions

2
Cargo.lock generated
View File

@ -4984,7 +4984,7 @@ dependencies = [
[[package]]
name = "xmpp"
version = "0.5.0"
source = "git+https://gitlab.com/werner.kroneman/xmpp-rs.git?rev=ecd0be4aad985e9812626d6c4499c2586c158aba#ecd0be4aad985e9812626d6c4499c2586c158aba"
source = "git+https://gitlab.com/xmpp-rs/xmpp-rs.git?rev=2b433d7036209f35ff7daf033a7b7692e58ab6c3#2b433d7036209f35ff7daf033a7b7692e58ab6c3"
dependencies = [
"futures",
"log",

View File

@ -29,7 +29,7 @@ dioxus = "0.4.3"
dioxus-desktop = "0.4.3"
dioxus-hot-reload = { version="0.4.3", features=["file_watcher"] }
futures-util = "0.3.29"
xmpp = { git = "https://gitlab.com/werner.kroneman/xmpp-rs.git", rev="ecd0be4aad985e9812626d6c4499c2586c158aba"}
xmpp = { git = "https://gitlab.com/xmpp-rs/xmpp-rs.git", rev="2b433d7036209f35ff7daf033a7b7692e58ab6c3" }
keyring = "2.1.0"
jid = { version = "0.10.0", features = ["serde"] }
confy = "0.5.1"

View File

@ -50,6 +50,26 @@
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
packages.${system}.default = pkgs.rustPlatform.buildRustPackage {
name = "Dergchat";
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs; [
rust-toolchain
pkg-config
openssl
glibc
gtk3
webkitgtk_4_1
];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"xmpp-0.5.0" = "sha256-zRHI2qSCLgI/mrRrToRrDbvZYSa9vwxoDwghzNyN4mg=";
};
};
};
};
}