fix: missing dependency for flake.nix (#751)

* fix: missing dependency for flake.nix

* fix formatting

* remove bindings.ts changes

---------

Co-authored-by: Thinh Vu <phuocthinhvu@gmail.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
This commit is contained in:
Phuoc Thinh Vu 2026-02-10 08:34:33 +07:00 committed by GitHub
parent 647ccab7f8
commit 14db1791d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 93 additions and 77 deletions

3
.gitignore vendored
View file

@ -34,3 +34,6 @@ recording_*
playwright-report/ playwright-report/
test-results/ test-results/
blob-report/ blob-report/
.direnv
.envrc

View file

@ -5,21 +5,28 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
}; };
outputs = { outputs =
{
self, self,
nixpkgs, nixpkgs,
}: let }:
let
supportedSystems = [ "x86_64-linux" ]; supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
# Read version from Cargo.toml # Read version from Cargo.toml
cargoToml = builtins.fromTOML (builtins.readFile ./src-tauri/Cargo.toml); cargoToml = builtins.fromTOML (builtins.readFile ./src-tauri/Cargo.toml);
version = cargoToml.package.version; version = cargoToml.package.version;
in { in
packages = forAllSystems (system: let {
packages = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in { in
{
# AppImage-based package # AppImage-based package
handy-appimage = let handy-appimage =
let
appimage = pkgs.appimageTools.wrapType2 { appimage = pkgs.appimageTools.wrapType2 {
pname = "handy-appimage-unwrapped"; pname = "handy-appimage-unwrapped";
inherit version; inherit version;
@ -27,8 +34,8 @@
url = "https://github.com/cjpais/Handy/releases/download/v${version}/Handy_${version}_amd64.AppImage"; url = "https://github.com/cjpais/Handy/releases/download/v${version}/Handy_${version}_amd64.AppImage";
hash = "sha256-tTswFYLCPGtMbHAb2bQMsklRiRCVXLrtu4pQC8IHdqQ="; hash = "sha256-tTswFYLCPGtMbHAb2bQMsklRiRCVXLrtu4pQC8IHdqQ=";
}; };
extraPkgs = p: extraPkgs =
with p; [ p: with p; [
alsa-lib alsa-lib
]; ];
}; };
@ -39,12 +46,16 @@
''; '';
default = self.packages.${system}.handy-appimage; default = self.packages.${system}.handy-appimage;
}); }
);
# Development shell for building from source # Development shell for building from source
devShells = forAllSystems (system: let devShells = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in { in
{
default = pkgs.mkShell { default = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
# Rust # Rust
@ -64,6 +75,7 @@
libsoup_3 libsoup_3
webkitgtk_4_1 webkitgtk_4_1
gtk3 gtk3
gtk-layer-shell
glib glib
libxtst libxtst
libevdev libevdev
@ -84,6 +96,7 @@
echo "Run 'bun run tauri dev' to start" echo "Run 'bun run tauri dev' to start"
''; '';
}; };
}); }
);
}; };
} }