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

init subdl package #33088

Merged
merged 2 commits into from Feb 6, 2018
Merged

init subdl package #33088

merged 2 commits into from Feb 6, 2018

Conversation

exFalso
Copy link
Contributor

@exFalso exFalso commented Dec 26, 2017

Motivation for this change

Add the subdl tool

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

buildInputs = [ python3 ];

installPhase = ''
install -vD subdl $out/bin/subdl
Copy link
Member

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 = {
Copy link
Member

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";
Copy link
Member

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.

Copy link
Member

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.

@lukateras
Copy link
Member

@GrahamcOfBorg build subdl

Copy link

@GrahamcOfBorg GrahamcOfBorg left a 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

Copy link

@GrahamcOfBorg GrahamcOfBorg left a 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

Copy link

@GrahamcOfBorg GrahamcOfBorg left a 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

@grahamc
Copy link
Member

grahamc commented Feb 6, 2018

LGTM and ready to merge once the version is added to the name.

@7c6f434c 7c6f434c merged commit 907474e into NixOS:master Feb 6, 2018
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

6 participants