-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
unFTP: init at 0.14.5 #281588
base: master
Are you sure you want to change the base?
unFTP: init at 0.14.5 #281588
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,35 @@ | ||||||
{ lib | ||||||
, linux-pam | ||||||
, rustPlatform | ||||||
, fetchFromGitHub | ||||||
, buildFeatures ? [ "gnu" ] | ||||||
}: | ||||||
|
||||||
rustPlatform.buildRustPackage rec { | ||||||
pname = "unFTP"; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
version = "0.14.5"; | ||||||
|
||||||
src = fetchFromGitHub { | ||||||
owner = "bolcom"; | ||||||
repo = pname; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pname and repo are not considered the same and can cause issues down the path.
Suggested change
|
||||||
rev = "v${version}"; | ||||||
sha256 = "sha256-CPq4CH7reS5AI145l8U1nekm2MKnmoBfVqENR9QOKF4"; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "sha256-" part of the hash is already making it specific (: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll provide some more details. This comes from nix adding support for SRI hashes, using the You'll frequently see reviewers add this suggestion to both new packages, but also version bumps for packages that still use the "legacy" hashes (with legacy in quotes because AFAIK they haven't been officially deprecated anywhere) |
||||||
}; | ||||||
|
||||||
#Extra cargo Build Features | ||||||
inherit buildFeatures; | ||||||
|
||||||
buildInputs = [ | ||||||
linux-pam | ||||||
]; | ||||||
|
||||||
cargoSha256 = "sha256-vFu1D2GYItVGeTmd/rwmZHM/mf4zQ3tzBLux7vb+yZ0="; | ||||||
|
||||||
meta = with lib; { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add the |
||||||
description = "A FTP(S) server with a couple of twists written in Rust"; | ||||||
homepage = "https://unftp.rs"; | ||||||
license = licenses.asl20; | ||||||
maintainers = with maintainers; [ rafaelsgirao ]; | ||||||
platforms = platforms.unix; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm a bit unsure if this is reasonable, considering that we build it with |
||||||
}; | ||||||
} |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -26838,6 +26838,8 @@ with pkgs; | |||
|
||||
system-sendmail = lowPrio (callPackage ../servers/mail/system-sendmail { }); | ||||
|
||||
unFTP = callPackage ../servers/unftp { }; | ||||
|
||||
Comment on lines
+26841
to
+26842
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The package should be placed under the
Suggested change
|
||||
# PulseAudio daemons | ||||
|
||||
hsphfpd = callPackage ../servers/pulseaudio/hsphfpd.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.
The commit adding you as a maintainer should come before the package commit (: