-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
charles: split into versions (major releases) #56159
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although the way you split is technically correct, there's a lot of duplicated code. Please take a look at how it's done for Terraform:
- https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/cluster/terraform/default.nix
nixpkgs/pkgs/top-level/all-packages.nix
Lines 22836 to 22841 in a1c295e
inherit (callPackage ../applications/networking/cluster/terraform {}) terraform_0_11 terraform_0_11-full terraform_0_12 terraform_plugins_test ;
Should be good to go now @kalbasit ! I used postgresql as the template for basing my changes upon, as it seemed like the easiest way and I had heard good about it! https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/sql/postgresql/default.nix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the Postgres example is quite complex as it provides access to create sub-packages under postgresqlPackages
(or postgresql.pkgs
), take a look at the sub-packages here. The terraform example is pretty straightforward, you don't even need the pluggable
function.
So, should be rewritten now according to terraform ! :) (I hope at least?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for your contribution!
Motivation for this change
Charles proxy requires a license and each license it bound to the major release version.
Therefor it makes sense to make the previous version available to the users.
Things done
I have created the following two files
Which are the most recent of these major versions.
Then there are the 3 following packages, to be able to pin/install them
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)