2024-06-03 11:31:11 +03:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-07-08 13:41:58 +03:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-07-25 18:53:28 +03:00
|
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-06-03 11:31:11 +03:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
rust-overlay = {
|
|
|
|
url = "github:oxalica/rust-overlay";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-25 18:53:28 +03:00
|
|
|
outputs = { self, nixpkgs, unstable, flake-utils, rust-overlay }:
|
2024-06-03 11:31:11 +03:00
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
overlays = [ (import rust-overlay) ];
|
2024-07-25 18:53:28 +03:00
|
|
|
# pkgs = import nixpkgs {
|
|
|
|
# inherit system overlays;
|
|
|
|
# };
|
|
|
|
unstablePkgs = import unstable {
|
2024-06-03 11:31:11 +03:00
|
|
|
inherit system overlays;
|
|
|
|
};
|
|
|
|
|
2024-07-27 11:26:29 +03:00
|
|
|
rustToolchain = "stable";
|
2024-06-03 11:31:11 +03:00
|
|
|
|
2024-07-25 18:53:28 +03:00
|
|
|
common = with unstablePkgs; [
|
2024-06-03 11:31:11 +03:00
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
dbus
|
|
|
|
openssl_3
|
|
|
|
librsvg
|
|
|
|
gettext
|
|
|
|
libiconv
|
2024-07-25 18:53:28 +03:00
|
|
|
libsoup
|
2024-06-03 11:31:11 +03:00
|
|
|
libsoup_3
|
|
|
|
webkitgtk
|
|
|
|
nodejs_20
|
2024-06-25 15:57:11 +03:00
|
|
|
corepack_20
|
2024-06-03 11:31:11 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
# runtime Deps
|
2024-07-25 18:53:28 +03:00
|
|
|
libraries = with unstablePkgs;[
|
2024-06-03 11:31:11 +03:00
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
harfbuzz
|
|
|
|
gdk-pixbuf
|
|
|
|
] ++ common;
|
|
|
|
|
|
|
|
# compile-time deps
|
2024-07-25 18:53:28 +03:00
|
|
|
packages = with unstablePkgs; [
|
2024-06-03 11:31:11 +03:00
|
|
|
curl
|
|
|
|
wget
|
|
|
|
pkg-config
|
|
|
|
rustToolchain
|
|
|
|
] ++ common;
|
|
|
|
in
|
2024-07-25 18:53:28 +03:00
|
|
|
with unstablePkgs;
|
2024-06-03 11:31:11 +03:00
|
|
|
{
|
|
|
|
devShells.default = mkShell {
|
|
|
|
nativeBuildInputs = packages;
|
|
|
|
buildInputs = libraries;
|
2024-07-25 18:53:28 +03:00
|
|
|
shellHook = ''
|
|
|
|
export LD_LIBRARY_PATH=${unstablePkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH
|
|
|
|
export XDG_DATA_DIRS=${unstablePkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${unstablePkgs.gsettings-desktop-schemas.name}:${unstablePkgs.gtk3}/share/gsettings-schemas/${unstablePkgs.gtk3.name}:$XDG_DATA_DIRS
|
|
|
|
export GIO_MODULE_DIR="${unstablePkgs.glib-networking}/lib/gio/modules/"
|
|
|
|
'';
|
2024-06-03 11:31:11 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|