Skip to content

Add nix-prefetch-github - #39214

Merged
Mic92 merged 2 commits into
NixOS:masterfrom
seppeljordan:add-nix-prefetch-github
May 23, 2018
Merged

Mic92 merged 2 commits into
NixOS:masterfrom
seppeljordan:add-nix-prefetch-github

Conversation

@seppeljordan

@seppeljordan seppeljordan commented Apr 20, 2018 •

Copy link
Copy Markdown
Contributor
Motivation for this change

This PR adds an application to nixpkgs to "prefetch" sources from github. For this purpose I also added a python package called "effect", because it is a dependency of "nix-prefetch-github"

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.

@seppeljordan
seppeljordan requested a review from FRidh as a code owner April 20, 2018 09:34
@GrahamcOfBorg GrahamcOfBorg added 6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 20, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use pname and version instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nicer to create releases/tags in the GitHub repo.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Comment thread pkgs/top-level/all-packages.nix Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

callPackage

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please pass python3 or python3Packages instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to keep these out

@Mic92

Mic92 commented Apr 21, 2018

Copy link
Copy Markdown
Member

Just as a side note: #21732 (comment)

@seppeljordan
seppeljordan force-pushed the add-nix-prefetch-github branch 2 times, most recently from 018ac73 to f28169d Compare May 15, 2018 13:07
@seppeljordan

Copy link
Copy Markdown
Contributor Author

Hi, I think that I included all the suggestions that were given. Please tell me if there is more that I should change with this PR

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkInputs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop this let in.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create tags in your GitHub repo.

@seppeljordan

Copy link
Copy Markdown
Contributor Author

@dotlambda thx for the review

@seppeljordan
seppeljordan force-pushed the add-nix-prefetch-github branch from f28169d to aca3198 Compare May 22, 2018 18:55
@lukateras

Copy link
Copy Markdown
Member

Maybe, let's phase out fetchFromGitHub in favor of fetchzip? This needs an RFC.

@dotlambda dotlambda added the 9.needs: community feedback This needs feedback from more community members. label May 22, 2018
@Mic92

Mic92 commented May 23, 2018

Copy link
Copy Markdown
Member

@GrahamcOfBorg build nix-prefetch-github

@GrahamcOfBorg

Copy link
Copy Markdown

Success on x86_64-darwin (full log)

Attempted: nix-prefetch-github

Partial log (click to expand)

reading manifest file 'src/nix_prefetch_github.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/nix_prefetch_github.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/a8szdagwdikvh0nkhsklkhqy871sw5ws-nix-prefetch-github-1.3

@GrahamcOfBorg

Copy link
Copy Markdown

Success on x86_64-linux (full log)

Attempted: nix-prefetch-github

Partial log (click to expand)

reading manifest file 'src/nix_prefetch_github.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/nix_prefetch_github.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/ys2wb4hymcfwxfy6l6qalvagia7jp6ai-nix-prefetch-github-1.3

@GrahamcOfBorg

Copy link
Copy Markdown

Success on aarch64-linux (full log)

Attempted: nix-prefetch-github

Partial log (click to expand)

reading manifest file 'src/nix_prefetch_github.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/nix_prefetch_github.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/23rz8qw43xdp4f7qgy9wzrasakgh4lgx-nix-prefetch-github-1.3

@Mic92
Mic92 merged commit 273c882 into NixOS:master May 23, 2018
@FRidh FRidh mentioned this pull request May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 9.needs: community feedback This needs feedback from more community members. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants