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
init subdl package #33088
init subdl package #33088
Conversation
buildInputs = [ python3 ]; | ||
|
||
installPhase = '' | ||
install -vD subdl $out/bin/subdl |
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.
install -Dt $out/bin subdl
is even shorter :-)
sha256 = "0kmk5ck1j49q4ww0lvas2767kwnzhkq0vdwkmjypdx5zkxz73fn8"; | ||
}; | ||
|
||
meta = { |
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.
Nitpick: stdenv.lib
could be omitted if meta
was defined with stdenv.lib
:
meta = with stdenv.lib; {
license = licenses.gpl3;
};
{ stdenv, fetchFromGitHub, python3 }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "subdl"; |
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 depends on reviewer, but some would only accept unversioned package with a date suffix in name
, e.g. subdl-2017-12-30
.
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.
Indeed, please put a version or at least date at the end. Otherwise, nix-env will never be able to update it.
@GrahamcOfBorg build subdl |
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.
Success for system: x86_64-linux
install: creating directory '/nix/store/1ib61gjdqqh6zvwifxfkdm9g5jgsk5rj-subdl'
install: creating directory '/nix/store/1ib61gjdqqh6zvwifxfkdm9g5jgsk5rj-subdl/bin'
'subdl' -> '/nix/store/1ib61gjdqqh6zvwifxfkdm9g5jgsk5rj-subdl/bin/subdl'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/1ib61gjdqqh6zvwifxfkdm9g5jgsk5rj-subdl
stripping (with flags -S) in /nix/store/1ib61gjdqqh6zvwifxfkdm9g5jgsk5rj-subdl/bin
patching script interpreter paths in /nix/store/1ib61gjdqqh6zvwifxfkdm9g5jgsk5rj-subdl
/nix/store/1ib61gjdqqh6zvwifxfkdm9g5jgsk5rj-subdl/bin/subdl: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/y95dd7cmw2xlf6hvg2j93b227pblpaaq-python3-3.6.4/bin/python3"
checking for references to /tmp/nix-build-subdl.drv-0 in /nix/store/1ib61gjdqqh6zvwifxfkdm9g5jgsk5rj-subdl...
/nix/store/1ib61gjdqqh6zvwifxfkdm9g5jgsk5rj-subdl
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.
Success for system: x86_64-darwin
no Makefile, doing nothing
installing
install: creating directory '/nix/store/j5bdg2jj0b5fpaiqadf1pqbmb1a73r7m-subdl'
install: creating directory '/nix/store/j5bdg2jj0b5fpaiqadf1pqbmb1a73r7m-subdl/bin'
'subdl' -> '/nix/store/j5bdg2jj0b5fpaiqadf1pqbmb1a73r7m-subdl/bin/subdl'
post-installation fixup
stripping (with flags -S) in /nix/store/j5bdg2jj0b5fpaiqadf1pqbmb1a73r7m-subdl/bin
patching script interpreter paths in /nix/store/j5bdg2jj0b5fpaiqadf1pqbmb1a73r7m-subdl
/nix/store/j5bdg2jj0b5fpaiqadf1pqbmb1a73r7m-subdl/bin/subdl: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/wqx2vx0cxqlmii5h907nkmgpi0p4n7vn-python3-3.6.4/bin/python3"
/nix/store/j5bdg2jj0b5fpaiqadf1pqbmb1a73r7m-subdl
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.
Success for system: aarch64-linux
install: creating directory '/nix/store/g7mas7ix05dgz8gs96bfpaiii3r27jb0-subdl'
install: creating directory '/nix/store/g7mas7ix05dgz8gs96bfpaiii3r27jb0-subdl/bin'
'subdl' -> '/nix/store/g7mas7ix05dgz8gs96bfpaiii3r27jb0-subdl/bin/subdl'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/g7mas7ix05dgz8gs96bfpaiii3r27jb0-subdl
stripping (with flags -S) in /nix/store/g7mas7ix05dgz8gs96bfpaiii3r27jb0-subdl/bin
patching script interpreter paths in /nix/store/g7mas7ix05dgz8gs96bfpaiii3r27jb0-subdl
/nix/store/g7mas7ix05dgz8gs96bfpaiii3r27jb0-subdl/bin/subdl: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/0v219z55akk9lfaa1fv8987cr1if3wj9-python3-3.6.4/bin/python3"
checking for references to /build in /nix/store/g7mas7ix05dgz8gs96bfpaiii3r27jb0-subdl...
/nix/store/g7mas7ix05dgz8gs96bfpaiii3r27jb0-subdl
LGTM and ready to merge once the version is added to the name. |
Motivation for this change
Add the subdl tool
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)