diff options
Diffstat (limited to 'px/packages/device.scm')
-rw-r--r-- | px/packages/device.scm | 109 |
1 files changed, 50 insertions, 59 deletions
diff --git a/px/packages/device.scm b/px/packages/device.scm index 128da71..1df1eaf 100644 --- a/px/packages/device.scm +++ b/px/packages/device.scm @@ -209,65 +209,56 @@ to other applications, without root priviliges.") (define-public px-user-identity-service (package - (name "px-user-identity-service") - (version "0.1.0") - (source - (origin - (method url-fetch) - (uri (string-append "https://source.pantherx.org/" name "_v" version - ".tgz")) - (sha256 - (base32 "0vhb5f4klvbdf802b3i4mli3926ny4pxcnbhif8mn56dnj8lgf84")))) - (build-system python-build-system) - (arguments - `(#:tests? #f - #:phases (modify-phases %standard-phases - (add-after 'install 'wrap-for-openssl-tss2-conf - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (openssl (assoc-ref %build-inputs "openssl")) - (tpm2-tss (assoc-ref %build-inputs "tpm2-tss")) - (tpm2-tss-engine (assoc-ref %build-inputs - "tpm2-tss-engine"))) - (wrap-program (string-append out - "/bin/px-user-identity-service") - `("OPENSSL_CONF" ":" prefix - (,(string-append tpm2-tss-engine - "/etc/openssl-tss2.conf"))) - `("PATH" ":" prefix - (,(string-append tpm2-tss-engine "/bin/") ,(string-append - openssl - "/bin/"))) - `("TPM2TSSENGINE_TCTI" ":" prefix - (,(string-append tpm2-tss - "/lib/libtss2-tcti-device.so:/dev/tpm0"))) - `("TPM2TOOLS_TCTI" ":" prefix - (,(string-append tpm2-tss - "/lib/libtss2-tcti-device.so:/dev/tpm0")))) #t))) - (delete 'sanity-check)))) - (inputs `(("python-waitress" ,python-waitress) - ("openssl" ,openssl-1.1) - ("python-requests" ,python-requests) - ("python-flask" ,python-flask) - ("python-werkzeug" ,python-werkzeug) - ("python-authlib-0.14.3" ,python-authlib-0.14.3) - ("python-pycryptodomex" ,python-pycryptodomex) - ("python-jose" ,python-jose) - ("python-pyyaml" ,python-pyyaml) - ("python-shortuuid" ,python-shortuuid-v1) - ("python-appdirs" ,python-appdirs) - ("python-psutil" ,python-psutil) - ("tpm2-tss" ,tpm2-tss-openssl-1.1) - ("tpm2-tss-engine" ,tpm2-tss-engine) - ("bash-minimal" ,bash-minimal))) - (native-inputs `(("pkg-config" ,pkg-config) - ("python-requests" ,python-requests))) - (propagated-inputs `(("px-device-identity" ,px-device-identity))) - (home-page "https://www.pantherx.org/") - (synopsis "PantherX User Identity Service REST API") - (description - "User Identity API to support QR and BC login with device signature.") - (license license:expat))) + (name "px-user-identity-service") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://source.pantherx.org/" name "_v" version + ".tgz")) + (sha256 + (base32 "0vhb5f4klvbdf802b3i4mli3926ny4pxcnbhif8mn56dnj8lgf84")))) + (build-system python-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases + %standard-phases + (add-after 'install 'wrap-for-openssl-tss2-conf + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (openssl (assoc-ref %build-inputs "openssl")) + (tpm2-tss (assoc-ref %build-inputs "tpm2-tss")) + (tpm2-tss-engine (assoc-ref %build-inputs "tpm2-tss-engine"))) + (wrap-program (string-append out "/bin/px-user-identity-service") + `("OPENSSL_CONF" ":" prefix + (,(string-append tpm2-tss-engine + "/etc/openssl-tss2.conf"))) + `("PATH" ":" prefix + (,(string-append tpm2-tss-engine "/bin/") + ,(string-append openssl "/bin/"))) + `("TPM2TSSENGINE_TCTI" ":" prefix + (,(string-append tpm2-tss + "/lib/libtss2-tcti-device.so:/dev/tpm0"))) + `("TPM2TOOLS_TCTI" ":" prefix + (,(string-append tpm2-tss + "/lib/libtss2-tcti-device.so:/dev/tpm0")))) + #t))) + (delete 'sanity-check)))) + (inputs `(("openssl" ,openssl-1.1) + ("tpm2-tss" ,tpm2-tss-openssl-1.1) + ("tpm2-tss-engine" ,tpm2-tss-engine))) + (native-inputs `(("pkg-config" ,pkg-config))) + (propagated-inputs `(("px-device-identity" ,px-device-identity) + ("python-waitress" ,python-waitress) + ("python-requests" ,python-requests) + ("python-flask" ,python-flask) + ("python-werkzeug" ,python-werkzeug))) + (home-page "https://www.pantherx.org/") + (synopsis "PantherX User Identity Service REST API") + (description + "User Identity API to support QR and BC login with device signature.") + (license license:expat))) (define-public px-file-upload-cli (package |