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

zitadel: init at 2.37.2; nixos/zitadel: init #254896

Merged
merged 3 commits into from
Oct 3, 2023
Merged

zitadel: init at 2.37.2; nixos/zitadel: init #254896

merged 3 commits into from
Oct 3, 2023

Conversation

Sorixelle
Copy link
Contributor

@Sorixelle Sorixelle commented Sep 13, 2023

Description of changes

ZITADEL is a identity and access management platform. This PR creates a Nix derivation for it, as well as a NixOS module for running it as a service.

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/)
  • 23.11 Release Notes (or backporting 23.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
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 8.has: changelog 8.has: module (update) This PR changes an existing module in `nixos/` labels Sep 13, 2023
@Sorixelle Sorixelle changed the title zitadel: init at 2.36.2; nixos/zitadel: init zitadel: init at 2.36.3; nixos/zitadel: init Sep 13, 2023
@Sorixelle
Copy link
Contributor Author

Result of nixpkgs-review pr 254896 run on x86_64-linux 1

1 package blacklisted:
  • nixos-install-tools
1 package built:
  • zitadel

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 labels Sep 13, 2023
Copy link
Contributor

@Gabriella439 Gabriella439 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just a few small suggestions

@Sorixelle Sorixelle changed the title zitadel: init at 2.36.3; nixos/zitadel: init zitadel: init at 2.37.2; nixos/zitadel: init Sep 23, 2023
@pinpox
Copy link
Member

pinpox commented Sep 28, 2023

Anything missing on this? I'm eager to try it out 👍

@pinpox pinpox mentioned this pull request Sep 28, 2023
12 tasks
Copy link
Contributor

@Gabriella439 Gabriella439 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one last thing. After you fix this and resolve the merge conflict I'm ready to merge this

@Gabriella439 Gabriella439 merged commit 638d19a into NixOS:master Oct 3, 2023
@Sorixelle Sorixelle deleted the zitadel branch October 3, 2023 05:39
go run internal/api/assets/generator/asset_generator.go -directory=internal/api/assets/generator/ -assets=docs/apis/assets/assets.md

cp -r ${passthru.console}/* internal/api/ui/console/static
CGO_ENABLED=0 go build -o zitadel -v -ldflags="-s -w -X 'github.com/zitadel/zitadel/cmd/build.version=${version}'"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a good reason not to use ldflags?

Now if I want to make a debug build of zitadel, I have to use nix build --impure --expr '(import <nixpkgs> {}).zitadel.overrideAttrs (old: { buildPhase = builtins.replaceStrings [ "-s -w" ] [ "" ] old.buildPhase; })'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants