Created
January 10, 2022 07:13
-
-
Save FruitieX/73afe3eb15da45e0e05d5c9cf5d318fc to your computer and use it in GitHub Desktop.
Fetches necessary dependencies for running Dioxus in desktop mode when using the Nix package manager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/8c007b60731c07dd7a052cce508de3bb1ae849b4.tar.gz); | |
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; }; | |
rustStableChannel = (nixpkgs.rustChannels.stable).rust.override { | |
extensions = [ | |
"rust-src" | |
"rust-analysis" | |
"rustfmt-preview" | |
"clippy-preview" | |
]; | |
targets = [ | |
"x86_64-unknown-linux-gnu" | |
"wasm32-unknown-unknown" | |
]; | |
}; | |
in | |
with nixpkgs; | |
stdenv.mkDerivation { | |
name = "env"; | |
buildInputs = [ | |
rustStableChannel | |
pkg-config | |
openssl | |
glib | |
cairo | |
pango | |
atk | |
gdk-pixbuf | |
libsoup | |
gtk3 | |
libappindicator | |
webkitgtk | |
]; | |
} |
where i use webkitgtk_4_1 is ok, there is webkitgtk
default use abi=4.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice. It seems there is currently no set of compatible dependencies with channel 23.11.
javascriptcoregtk-4.x
caused issues. I tried withwebkitgtk
andwebkitgtk_6_0
but both drag an incompatible version in.