|
@@ -1,21 +1,86 @@
|
|
|
-{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, openssl, onnxruntime, glib, gtk3 }:
|
|
|
|
|
|
|
+{ lib
|
|
|
|
|
+, stdenv
|
|
|
|
|
+, fetchFromGitHub
|
|
|
|
|
+, cmake
|
|
|
|
|
+, pkg-config
|
|
|
|
|
+, openssl
|
|
|
|
|
+, onnxruntime
|
|
|
|
|
+, glib
|
|
|
|
|
+, gtk3
|
|
|
|
|
+, libcamera
|
|
|
|
|
+, libpam
|
|
|
|
|
+, cli11
|
|
|
|
|
+, libjpeg
|
|
|
|
|
+, rustPlatform
|
|
|
|
|
+, bun
|
|
|
|
|
+, cargo
|
|
|
|
|
+, rustc
|
|
|
|
|
+, webkitgtk_4_1
|
|
|
|
|
+, libxdo
|
|
|
|
|
+, libayatana-appindicator
|
|
|
|
|
+, librsvg
|
|
|
|
|
+, wrapGAppsHook4
|
|
|
|
|
+}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
stdenv.mkDerivation rec {
|
|
|
pname = "biopass";
|
|
pname = "biopass";
|
|
|
version = "1.4.1";
|
|
version = "1.4.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
src = fetchFromGitHub {
|
|
|
- owner = "ticklabvn";
|
|
|
|
|
|
|
+ owner = "TickLabVN";
|
|
|
repo = "biopass";
|
|
repo = "biopass";
|
|
|
- rev = "${version}";
|
|
|
|
|
|
|
+ rev = "v${version}";
|
|
|
hash = "sha256-JNX2L4IDU5XxfgjhbuivhiYKp7GdLWLogrBgdFgODsg=";
|
|
hash = "sha256-JNX2L4IDU5XxfgjhbuivhiYKp7GdLWLogrBgdFgODsg=";
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
- buildInputs = [ openssl onnxruntime glib gtk3 ];
|
|
|
|
|
|
|
+ cmakeFlags = [
|
|
|
|
|
+ "-S../auth"
|
|
|
|
|
+ "-B."
|
|
|
|
|
+ ];
|
|
|
|
|
+
|
|
|
|
|
+ nativeBuildInputs = [
|
|
|
|
|
+ cmake
|
|
|
|
|
+ pkg-config
|
|
|
|
|
+ rustPlatform.cargoSetupHook
|
|
|
|
|
+ cargo
|
|
|
|
|
+ rustc
|
|
|
|
|
+ bun
|
|
|
|
|
+ wrapGAppsHook4
|
|
|
|
|
+ ];
|
|
|
|
|
+
|
|
|
|
|
+ buildInputs = [
|
|
|
|
|
+ openssl
|
|
|
|
|
+ onnxruntime
|
|
|
|
|
+ glib
|
|
|
|
|
+ gtk3
|
|
|
|
|
+ libpam
|
|
|
|
|
+ cli11
|
|
|
|
|
+ libjpeg
|
|
|
|
|
+ libcamera
|
|
|
|
|
+
|
|
|
|
|
+ webkitgtk_4_1
|
|
|
|
|
+ libxdo
|
|
|
|
|
+ libayatana-appindicator
|
|
|
|
|
+ librsvg
|
|
|
|
|
+ ];
|
|
|
|
|
+
|
|
|
|
|
+ buildPhase = ''
|
|
|
|
|
+ runHook preBuild
|
|
|
|
|
+
|
|
|
|
|
+ cmake --build . --config Release
|
|
|
|
|
+
|
|
|
|
|
+ export HOME=$(mktemp -d)
|
|
|
|
|
+ cd ../app
|
|
|
|
|
+ bun install --no-progress --frozen-lockfile
|
|
|
|
|
+ # Invoke tauri build logic (Requires cargo dependencies vendored if strictly sandboxed)
|
|
|
|
|
+ bun run tauri build --no-bundle
|
|
|
|
|
+
|
|
|
|
|
+ cd ../build
|
|
|
|
|
+ runHook postBuild
|
|
|
|
|
+ '';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
meta = with lib; {
|
|
|
- description = "An alternative to Windows Hello/Howdy";
|
|
|
|
|
|
|
+ description = "Modern Multi-Modal Biometric Login for Linux";
|
|
|
homepage = "https://github.com/TickLabVN/biopass";
|
|
homepage = "https://github.com/TickLabVN/biopass";
|
|
|
license = licenses.mit;
|
|
license = licenses.mit;
|
|
|
platforms = platforms.linux;
|
|
platforms = platforms.linux;
|