Skip to content

Commit 7cb42b9

Browse files
Desktop: Add native file dialogs (#2939)
* Add native open file dialog * Add native save file dialog * Fix integer underflow in defer message handler * Update nix flake * Cleanup --------- Co-authored-by: Dennis Kobert <[email protected]>
1 parent c98477d commit 7cb42b9

File tree

15 files changed

+665
-64
lines changed

15 files changed

+665
-64
lines changed

.nix/flake.lock

Lines changed: 3 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.nix/flake.nix

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
inputs = {
1818
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
19-
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
2019
rust-overlay = {
2120
url = "github:oxalica/rust-overlay";
2221
inputs.nixpkgs.follows = "nixpkgs";
@@ -27,17 +26,14 @@
2726
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
2827
};
2928

30-
outputs = { nixpkgs, nixpkgs-unstable, rust-overlay, flake-utils, ... }:
29+
outputs = { nixpkgs, rust-overlay, flake-utils, ... }:
3130
flake-utils.lib.eachDefaultSystem (system:
3231
let
3332
overlays = [ (import rust-overlay) ];
3433
pkgs = import nixpkgs {
3534
inherit system overlays;
3635
};
37-
pkgs-unstable = import nixpkgs-unstable {
38-
inherit system overlays;
39-
};
40-
36+
4137
rustc-wasm = pkgs.rust-bin.stable.latest.default.override {
4238
targets = [ "wasm32-unknown-unknown" ];
4339
extensions = [ "rust-src" "rust-analyzer" "clippy" "cargo" ];
@@ -75,10 +71,8 @@
7571
buildInputs = with pkgs; [
7672
# System libraries
7773
wayland
78-
wayland.dev
7974
openssl
8075
vulkan-loader
81-
mesa
8276
libraw
8377
libGL
8478
];
@@ -90,11 +84,10 @@
9084
pkgs.nodePackages.npm
9185
pkgs.binaryen
9286
pkgs.wasm-bindgen-cli
93-
pkgs-unstable.wasm-pack
87+
pkgs.wasm-pack
9488
pkgs.pkg-config
9589
pkgs.git
96-
pkgs.gobject-introspection
97-
pkgs-unstable.cargo-about
90+
pkgs.cargo-about
9891

9992
# Linker
10093
pkgs.mold

0 commit comments

Comments
 (0)