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
doh-proxy-rust: init at 0.3.8 #91318
Conversation
241b28c
to
7a8e0c0
Compare
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.
the derivation looks good to me; but i don't have familiarity enough on NixOS to comment on the module.
I would rebase your commit though so it's:
- add maintainer
- init doh-proxy
Looks like nixpkgs is already getting into namespace issues :(
7a8e0c0
to
476e0d9
Compare
Thanks for the review! I rebased on master, redid the commits, and also updated |
476e0d9
to
c03b1af
Compare
description = "Fast, mature, secure DoH server proxy written in Rust"; | ||
license = with licenses; [ mit ]; | ||
maintainers = with maintainers; [ stephank ]; | ||
platforms = platforms.all; |
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.
platforms = platforms.all; |
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.
I rebased on master with this change.
@ofborg eval |
c03b1af
to
d1abac5
Compare
d1abac5
to
8dff5d2
Compare
I rebased this on master and upgraded to 0.3.8, but the test still needs some work. Will need a bit of time to look into this. |
8dff5d2
to
eedf437
Compare
Turns out, the original test was also flawed, but miraculously succeeded. This is now fixed. |
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.
@aanderse could you take a 2nd look at the module?
@@ -0,0 +1,838 @@ | |||
diff --git a/Cargo.lock b/Cargo.lock |
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.
It would be great if you could try to upstream this.
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.
Unfortunately, upstream has rejected this in the past: DNSCrypt/doh-server#31
nixos/tests/doh-proxy-rust.nix
Outdated
@@ -0,0 +1,43 @@ | |||
import ./make-test-python.nix ({ pkgs, ... }: { | |||
name = "doh-proxy-rust"; | |||
meta = with pkgs.stdenv.lib.maintainers; { |
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.
meta = with pkgs.stdenv.lib.maintainers; { | |
meta = with lib.maintainers; { |
nixos/tests/doh-proxy-rust.nix
Outdated
@@ -0,0 +1,43 @@ | |||
import ./make-test-python.nix ({ pkgs, ... }: { |
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.
import ./make-test-python.nix ({ pkgs, ... }: { | |
import ./make-test-python.nix ({ lib, pkgs, ... }: { |
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.
A nice and simple module 👍 Just a few points for discussion.
description = "doh-proxy-rust"; | ||
after = [ "network.target" "nss-lookup.target" ]; | ||
wantedBy = [ "multi-user.target" ]; | ||
confinement = { |
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.
eedf437
to
20481bd
Compare
Looks good @stephank 👍 |
Motivation for this change
Using this on my own NixOS server, thought I'd contribute back. Note that this is my first contribution!
Hopefully,
doh-proxy-rust
is the right naming for this package. It conflicts with facebookexperimental/doh-proxy. (already packaged)I've added myself as maintainer, which I'm happy to do, but am also unsure how to best approach. For example, I don't actively monitor upstream for releases, but am curious if this is automated somehow. But I'm at least available to review issues/PRs whenever tagged, if that helps.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)