1 { lib, stdenv, fetchurl, dpkg, buildFHSEnv
2 , glibc, glib, openssl, tpm2-tss
3 , gtk3, gnome-keyring, polkit, polkit_gnome
7 pname = "beyond-identity";
9 libPath = lib.makeLibraryPath ([ glib glibc openssl tpm2-tss gtk3 gnome-keyring polkit polkit_gnome ]);
11 description = "Passwordless MFA identities for workforces, customers, and developers";
12 homepage = "https://www.beyondidentity.com";
13 downloadPage = "https://app.byndid.com/downloads";
14 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
15 license = licenses.unfree;
16 maintainers = with maintainers; [ klden hornwall ];
17 platforms = [ "x86_64-linux" ];
20 beyond-identity = stdenv.mkDerivation {
21 inherit pname version meta;
24 url = "https://packages.beyondidentity.com/public/linux-authenticator/deb/ubuntu/pool/focal/main/b/be/${pname}_${version}/${pname}_${version}_amd64.deb";
25 hash = "sha512-aOQi0hG7AZ3lIAPCDgGAjqVmNCuqFC62CjI9XPLBpvbxBgr2yi7alP952i31MufzzruzVweoQb8SWgNIHq/zIw==";
37 mkdir -p $out/opt/beyond-identity
41 cp -ar usr/{bin,share} $out
42 cp -ar opt/beyond-identity/bin $out/opt/beyond-identity
44 ln -s $out/opt/beyond-identity/bin/* $out/bin/
49 $out/share/applications/com.beyondidentity.endpoint.BeyondIdentity.desktop \
50 --replace /usr/bin/ $out/bin/
52 $out/share/applications/com.beyondidentity.endpoint.webserver.BeyondIdentity.desktop \
53 --replace /opt/ $out/opt/
55 $out/opt/beyond-identity/bin/byndid-web \
56 --replace /opt/ $out/opt/
58 $out/bin/beyond-identity \
59 --replace /opt/ $out/opt/ \
60 --replace /usr/bin/gtk-launch ${gtk3}/bin/gtk-launch
63 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
64 --set-rpath "${libPath}" \
69 # /usr/bin/pkcheck is hardcoded in binary - we need FHS
71 inherit pname version meta;
75 glib glibc openssl tpm2-tss
80 extraInstallCommands = ''
81 ln -s ${beyond-identity}/share $out
84 runScript = "beyond-identity";