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

appgate-sdp: init at 5.1.2 #108402

Merged
merged 2 commits into from
Jan 8, 2021
Merged

Conversation

ymatsiuk
Copy link
Contributor

@ymatsiuk ymatsiuk commented Jan 4, 2021

Motivation for this change

Add appgate-sdp vpn client

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 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: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 labels Jan 4, 2021
Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

Please give autoPatchElfHook a try.

pkgs/applications/networking/appgate-sdp/default.nix Outdated Show resolved Hide resolved
Copy link
Member

@aanderse aanderse left a comment

Choose a reason for hiding this comment

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

Does this package include systemd service units? If so you might consider using systemd.packages.

nixos/modules/programs/appgate-sdp.nix Outdated Show resolved Hide resolved
nixos/modules/programs/appgate-sdp.nix Outdated Show resolved Hide resolved
@ymatsiuk
Copy link
Contributor Author

ymatsiuk commented Jan 6, 2021

@aanderse @SuperSandro2000 guys, please take another look into this PR.
what I've done here is:

  • wrap binaries instead of manually adding systemd unit files
  • use unit files from .deb
  • iterate over files in loop and substituteInPlace
  • set rpath for all *.so files
  • patchelf required binaries
  • cleaned up dependencies list (left only required packages)

the only concern I have is substituteInPlace for some files causes warnings - not sure if that's something anyone cares about?
example:

for file in file1 file2 file3; do
  substituteInPlace $file \
    --replace a $out/a \
    --replace b $out/b \
    --replace c $out/c \
    --replace d $out/d
done

if file1 doesn't contain a and file2 b I'll get 2 warnings stating the same. Otherwise I would have to expand the loop. What is the preferred way?

@SuperSandro2000
Copy link
Member

the only concern I have is substituteInPlace for some files causes warnings - not sure if that's something anyone cares about?
example:

I think this is fine for now.

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

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

1 package built:
  • appgate-sdp

Copy link
Member

@aanderse aanderse left a comment

Choose a reason for hiding this comment

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

The module LGTM 👍

@SuperSandro2000 SuperSandro2000 merged commit 2b1f823 into NixOS:master Jan 8, 2021
@ymatsiuk ymatsiuk deleted the add-appgate-sdp branch January 13, 2021 14:03
@ymatsiuk ymatsiuk mentioned this pull request Jan 21, 2021
10 tasks
@Janik-Haag Janik-Haag added the 12. first-time contribution This PR is the author's first one; please be gentle! label Jun 12, 2023
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: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants