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

notsodeep: init at 2019.5.29 #107254

Closed
wants to merge 2 commits into from
Closed

notsodeep: init at 2019.5.29 #107254

wants to merge 2 commits into from

Conversation

damhiya
Copy link
Contributor

@damhiya damhiya commented Dec 20, 2020

Motivation for this change

notsodeep is an active DPI circumvention utility.
Here is the original repository : https://github.com/farukuzun/notsodeep
I wrote a nix expression for notsodeep and it seems it works well.

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.

Adding notsodeep which is an utility for active DPI circumvention.
the version number is last commit date of notsodeep repository.
Copy link
Member

@prusnak prusnak left a comment

Choose a reason for hiding this comment

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

Left a couple of comments to resolve.

Also, the repository you fetch sources from is archived - are you sure it's safe to package this software when the upstream does not want to maintain it?

Comment on lines +1 to +3
{ pkgs, stdenv, fetchFromGitHub }:
with stdenv;
mkDerivation {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{ pkgs, stdenv, fetchFromGitHub }:
with stdenv;
mkDerivation {
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {

Comment on lines +4 to +7
# notsodeep doesn't have version number
# So I added last commit date instead
pname = "notsodeep";
version = "2019.5.29";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# notsodeep doesn't have version number
# So I added last commit date instead
pname = "notsodeep";
version = "2019.5.29";
pname = "notsodeep";
version = "unstable-2019-05-29";

version = "2019.5.29";
src = fetchFromGitHub {
owner = "farukuzun";
repo = "notsodeep";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
repo = "notsodeep";
repo = pname;

sha256 = "0rzxszvjcv86516cv79zxs65jvd464483y6xv9g6l0bhjvrdr9kv";
};

buildInputs = with pkgs; [ libnetfilter_queue libnfnetlink ];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
buildInputs = with pkgs; [ libnetfilter_queue libnfnetlink ];
buildInputs = [ libnetfilter_queue libnfnetlink ];

mkdir -p $out/bin
cp notsodeep $out/bin
'';
meta = with lib; {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
meta = with lib; {
meta = with stdenv.lib; {

description = "Active DPI circumvention utility for Linux";
homepage = "https://github.com/farukuzun/notsodeep";
license = licenses.asl20;
maintainers = [ maintainers.damhiya ];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
maintainers = [ maintainers.damhiya ];
maintainers = with maintainers; [ damhiya ];

pkgs/top-level/all-packages.nix Show resolved Hide resolved
@@ -699,6 +699,8 @@ in

albert = libsForQt5.callPackage ../applications/misc/albert {};

notsodeep = callPackage ../tools/networking/notsodeep { };
Copy link
Member

Choose a reason for hiding this comment

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

Put this below in the file, so the packages are alphabetically sorted.

@damhiya
Copy link
Contributor Author

damhiya commented Dec 20, 2020

Also, the repository you fetch sources from is archived - are you sure it's safe to package this software when the upstream does not want to maintain it?

Okay, I can't assure the safety of the package to other people, and maybe it was not appropriate to register unmaintained software on nixpkgs.
May I let someone to make decision on this problem?

@damhiya damhiya closed this Dec 27, 2020
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.

None yet

2 participants