-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
git-ftp: init at 1.4.0 #27177
git-ftp: init at 1.4.0 #27177
Conversation
src = fetchFromGitHub { | ||
owner = "git-ftp"; | ||
repo = "git-ftp"; | ||
rev = "2c22f5118d61070449532a524db77bf810c13b97"; |
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.
Please use the release tag instead of the revision.
src = fetchFromGitHub { | ||
owner = "git-ftp"; | ||
repo = "git-ftp"; | ||
rev = "2c22f5118d61070449532a524db77bf810c13b97"; |
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.
should be:
rev = version;
make install${lib.optionalString (!stdenv.isDarwin) "-all"} prefix=$out | ||
''; | ||
|
||
buildInputs = lib.optionals (!stdenv.isDarwin) [pandoc man-db]; |
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.
Can you add a comment, why darwin does not support pandoc
and man-db
here? How is man-db
used in the build process?
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.
man-db builds only on platforms.linux
and i thought since there is no man-db there is no point in building the man pages on Darwin.
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.
afaik manpages are still usable on darwin.
}; | ||
|
||
# fixupPhase is needed for manpages | ||
phases = ["unpackPhase" "installPhase" "fixupPhase"]; |
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.
We usually prefer dontBuild = true;
over overriding phases.
Thanks! |
thank you! |
27177 was merged but not backported to 2.7. There is currently an open PR for 25750.
27177 was merged but not backported to 2.7. There is currently an open PR for 25750.
27177 was merged but not backported to 2.7. There is currently an open PR for 25750.
27177 was merged but not backported to 2.7. There is currently an open PR for 25750.
27177 was merged but not backported to 2.7. There is currently an open PR for 25750.
Motivation for this change
git-ftp is a nice tool when developing for web and hosting is not under your control.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)