Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: lldap #197362

Closed
wants to merge 3 commits into from
Closed

WIP: lldap #197362

wants to merge 3 commits into from

Conversation

tournemire
Copy link

Description of changes

lldap is a lightweight LDAP server : https://github.com/nitnelave/lldap.

It includes a wasm-based web interface, which this PR fails to build at the moment (see "remaining work" below). In an earlier ttempt, @aanderse used a workaround provided by @alyssais, but we can't use it as is in nixpkgs.

The goal of this WIP PR is to: 1) have a reference PR for lldap packaging, and 2) find a proper way to build the web interface.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.
remaining work
[INFO]: Checking for the Wasm target...
Error: wasm32-unknown-unknown target not found in sysroot: "/nix/store/kj59rn7lsqg97y6zpmxv6d9acs2jqjra-rustc-1.64.0"

Used rustc from the following path: "/nix/store/kj59rn7lsqg97y6zpmxv6d9acs2jqjra-rustc-1.64.0/bin/rustc"
It looks like Rustup is not being used. For non-Rustup setups, the wasm32-unknown-unknown target needs to be installed manually. See https://rustwasm.github.io/wasm-pack/book/prerequisites/non-rustup-setups.html on how to do this.


./main.js → ./pkg/bundle.js...
[!] Error: Could not resolve './pkg/lldap_app.js' from main.js
Error: Could not resolve './pkg/lldap_app.js' from main.js
    at error (/nix/store/ln0snppfk8clk121dq0minc21pz504xl-rollup-2.79.1/lib/node_modules/rollup/dist/shared/rollup.js:198:30)
    at ModuleLoader.handleResolveId (/nix/store/ln0snppfk8clk121dq0minc21pz504xl-rollup-2.79.1/lib/node_modules/rollup/dist/shared/rollup.js:22287:24)
    at /nix/store/ln0snppfk8clk121dq0minc21pz504xl-rollup-2.79.1/lib/node_modules/rollup/dist/shared/rollup.js:22250:26

@aanderse
Copy link
Member

@tournemire any ideas on the front-end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants