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
youtube-dl: 2018.03.10 -> 2018.03.14 #37003
Conversation
@@ -16,11 +16,11 @@ with stdenv.lib; | |||
buildPythonApplication rec { | |||
|
|||
name = "youtube-dl-${version}"; |
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.
pname
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.
@dotlambda What do you mean?
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.
You can drop the name
and set pname = "youtube-dl"
. This makes it easier to override the version.
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 tried that, but it doesn't build:
error: undefined variable 'name' at /home/bart/source/nixpkgs/pkgs/tools/misc/youtube-dl/default.nix:22:53
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.
That's because ${name}
is used in the url. You'll have to replace it by ${pname}-${version}
.
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.
Thanks, done.
@@ -15,12 +15,12 @@ | |||
with stdenv.lib; | |||
buildPythonApplication rec { | |||
|
|||
name = "youtube-dl-${version}"; | |||
version = "2018.03.10"; | |||
pname = "youtube-dl-${version}"; |
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.
No version in here
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.
Done
@GrahamcOfBorg build youtube-dl |
Success on aarch64-linux (full log) Attempted: youtube-dl Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: youtube-dl Partial log (click to expand)
|
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)