Skip to content

Instantly share code, notes, and snippets.

@samueldr
Created January 5, 2019 00:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save samueldr/55bb190f0dea9f3f3a36c607a4e3bfa9 to your computer and use it in GitHub Desktop.
~/tmp/tmp $
~/tmp/tmp $ ./universal-prefetch -l
Fetchers:
- fetchCrate
- fetchDockerConfig
- fetchDockerLayer
- fetchFromBitbucket
- fetchFromGitHub
- fetchFromGitLab
- fetchFromRepoOrCz
- fetchFromSavannah
- fetchHex
- fetchMavenArtifact
- fetchNuGet
- fetchRepoProject
- fetchbower
- fetchbzr
- fetchcvs
- fetchdarcs
- fetchdocker
- fetchegg
- fetchfossil
- fetchgit
- fetchgitLocal
- fetchgitPrivate
- fetchgx
- fetchhg
- fetchipfs
- fetchmtn
- fetchpatch
- fetchs3
- fetchsvn
- fetchsvnrevision
- fetchsvnssh
- fetchurl
- fetchurlBoot
- fetchzip
~/tmp/tmp $ ./universal-prefetch fetchFromGitHub --help
fetchFromGitHub: [options]
--fetchSubmodules=VALUE
--githubBase=VALUE
--name=VALUE
--owner=VALUE
--private=VALUE
--repo=VALUE
--rev=VALUE
--varPrefix=VALUE
~/tmp/tmp $ ./universal-prefetch fetchFromGitHub --owner NixOS --repo nixpkgs
error: 'fetchFromGitHub' at /etc/nixos/nixpkgs/pkgs/top-level/all-packages.nix:236:21 called without required argument 'rev', at (string):1:2
~/tmp/tmp $ ./universal-prefetch fetchFromGitHub --owner NixOS --repo nixpkgs --rev master
04i1xrzyl3i3b1kmfx6f5z78sc66hwzyxd3v6i4zfqavvarw3w6s
~/tmp/tmp $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment