Skip to main content

Prefetch source code from github for nix build tool

Project description

This module implements a python function and a command line tool to help you fetch sources from github when using fetchFromGitHub.

command line example

$ nix-prefetch-github seppeljordan nix-prefetch-github
{
    "owner": "seppeljordan",
    "repo": "nix-prefetch-github",
    "rev": "603f42203db128a7aaa091cf34d406bf7a80e9f0",
    "sha256": "1wrvvy85x7yqj4rkgpj93cdnhalyhzpr8pmyca38v59lm5ndh2w4"
}

python example

Python 3.6.4 (default, Dec 19 2017, 05:36:13)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nix_prefetch_github
>>> nix_prefetch_github.main(owner="seppeljordan", repo="nix-prefetch-github", hash_only=False, rev=None)
{'owner': 'seppeljordan', 'repo': 'nix-prefetch-github', 'rev': '603f42203db128a7aaa091cf34d406bf7a80e9f0', 'sha256': '1wrvvy85x7yqj4rkgpj93cdnhalyhzpr8pmyca38v59lm5ndh2w4'}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nix-prefetch-github-1.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file nix-prefetch-github-1.2.tar.gz.

File metadata

File hashes

Hashes for nix-prefetch-github-1.2.tar.gz
Algorithm Hash digest
SHA256 1094d06cb6de23c38ad61a5577ecbafe0dccecc9f94f8502b1348b930a24cf76
MD5 e8ff1a7781efc665382ef52312c2a086
BLAKE2b-256 1e1384b6952133cde16348f3a2501b31e90df4e8303938133ba81e3ef374180e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page