summary refs log tree commit diff
path: root/pkgs/build-support/fetchgit
Commit message (Collapse)AuthorAge
* fetchgitPrivate: put our custom ssh on PATHFrederik Rietdijk2017-11-07
| | | | | | | | | Currently we wrap ssh so it can find the config file passed in by <ssh-config-file>. If one however uses ProxyCommand ssh, then ssh that is on PATH is taken (which is also unavailable when using nix-shell --pure), which is the plain ${openssh}/bin/ssh. This commit makes sure our wrapped ssh is available on PATH.
* fetchzip and friends: Set "name" to "source" by defaultEelco Dolstra2017-10-30
| | | | | | This makes them produce the same store paths as builtins.fetchgit, builtins.fetchTarball etc. See https://github.com/NixOS/nix/commit/65b5f177b5fbb1b0778ede047a13a3cee9c59cfe.
* Update nix-prefetch-gitVaibhav Sagar2017-10-29
| | | s/understand/understood/
* Merge: more compatibility for git* fetchersVladimír Čunát2017-07-09
|\ | | | | | | | | | | | | | | | | | | | | | | They're additional commits from #26877. Changing names of the fetched stuff was changing very many hashes, and I think it's better to avoid that for the moment to reduce work needed by nixpkgs users. The fetchers are expected to be commonly used even outside nixpkgs, and the current naming wasn't that bad usually. (commit analogical to d10c3cc5eedf58e80e2; I haven't noticed the part of the PR has already got to master)
| * support old naming, just add escaping of unsafe charsVolth2017-07-05
| |
| * gitRepoToName: make it compatible with old fetchFromGitHub's ↵Volth2017-07-04
| | | | | | | | "${repo}-${rev}-scr" to avoid mass rebuild
* | Merge branch 'master' into stagingVladimír Čunát2017-07-05
|\ \ | |/ |/|
| * nix-prefetch-git: add --quiet to --helpHarmen2017-07-03
| |
* | fetchFromGitHub: fix fetchSubmodules=true when revision is not hexadecimalVolth2017-07-04
|/
* fetchgit: support "git@server:repo" URLsBjørn Forsman2017-06-24
| | | | | Update the code that extracts the base name from a git repo URL so that it can deal with URLs like "git@server:repo".
* fetchgit: add postFetch argumentDaiderd Jordan2017-06-03
|
* fetch-*: remove md5 supportRobin Gloster2017-03-20
| | | | fixes #4491
* nix-prefetch-git: remove call to non-existent print_metadata command; ↵Connor Clark2017-01-03
| | | | improve hash mismatch error message.
* nix-prefetch-git: fix date fieldJörg Thalheim2016-12-05
| | | | | in some cases `git show` include tag information in the output this is suppressed by the parameter '-1'
* nix-prefetch-git: escape string fields properlyJörg Thalheim2016-12-05
| | | | json requires certain characters to be escaped in strings.
* Remove fetchMD5warnEelco Dolstra2016-11-30
| | | | | | | | Deprecation warnings should not be used in Nixpkgs because they spam innocent "nix-env -qa" users with (in this case) dozens of messages that they can't do anything about. This also reverts commit 2ca883338389b7ab995924a0cab0211993bdf1da.
* fetchFromGitHub: add fetchSubmodules optionAlexey Shmalko2016-11-18
| | | | | | | | This commit extends fetchFromGitHub with ability to fetch GitHub repositories with submodules, so we can use the function consistently with all GitHub repositories. Note it doesn't change the previous behavior.
* fetch*: print a trace warning about md5 deprecationMichael Raskin2016-10-09
|
* lib/fetchers.nix: factor out impure proxy vars (#18702)Profpatsch2016-09-17
| | | | Apparently everyone just copied those variables, instead of creating a library constant for them. Some even removed the comment. -.-
* nix-prefetch-git: unbreak JSON outputBjørn Forsman2016-07-04
| | | | | | | | | | This fixes a regression caused by commit f56ab9e ("nix-prefetch-git: Include the date in the machine-readable [...]") where a couple of directory paths printed by pushd/popd appeared before the JSON output on stdout (thus breaking it). Fix it by redirecting the extraneous output to /dev/null. Reported by Michael Alan Dorman <mdorman@ironicdesign.com>.
* nix-prefetch-git: Include the date in the machine-readable output onDavid Grayson2016-07-03
| | | | | | | stdout, in strict ISO 8601 format. This will be helpful for automatically updating fetchgit expressions and the dates in version numbers associated with them.
* nix-prefetch-git: fix bash evaluation order dependencyBenno Fünfstück2016-06-15
|
* nix-prefetch-git: shellcheck fixeszimbatm2016-06-12
| | | | | Used shellcheck (https://github.com/koalaman/shellcheck) to validate the script and fixed any resulting escaping and ambiguity issues.
* Merge pull request #15469 from NixOS/fetchgitEelco Dolstra2016-05-16
|\ | | | | fetchgit: remove only .git folder
| * fetchgit: remove only .gitDomen Kožar2016-05-15
| | | | | | | | | | | | | | | | | | | | | | Source of this change goes back to 2009 and original version of fetchgit at 205fb0c87eab5dd53c6a0e97b1ff0e48f141c902. The nondeterminism is really caused by changing .git so leave other files alone as they might be interesting. Note: this causes a hash mismatch with Hydra's version of Git Plugin which we should fix to comply.
* | nix-prefetch-git: create parent directoriesGuido Zgraggen2016-04-22
|/
* nix-prefetch-git: fix url_to_name heuristiczimbatm2016-03-23
| | | | | The function wasn't checking that *all* of the characters where [a-z0-9]. Fixes #13921
* nix-prefetch-scripts: make nix-prefetch-git report fetchSubmodules in its ↵Ryan Trinkle2016-03-21
| | | | | | JSON output Previously, nix-prefetch-git would report the same JSON whether submodules were being fetched or not; with this change, the --fetch-submodules option will cause the JSON output to include "fetchSubmodules": true, so that fetchgit (builtins.fromJSON (builtins.readFile ./path/to/output.json)) will work.
* nix-prefetch-git: change the default output to JSONzimbatm2016-02-29
| | | | | As discussed on the mailing list. The nix output was short-lived so it's probably okay to change it.
* nix-prefetch-git: print out valid nix expression; make --quiet very quietTim Cuthbertson2016-02-27
|
* nix-prefetch-git: add --quiet flag and minor cleanupTim Cuthbertson2016-02-27
|
* nix-prefetch-git: output base32 hash so output matches nix-build errorsGraham Christensen2016-02-22
| | | | It turns out hashFormat has never been set.
* nix-prefetch-git: use fetchgit's naming heuristiczimbatm2016-02-13
| | | | | | | | | This commit fixes #6651. Before this change the `nix-prefetch-git` script would use a different store name than nix's `fetchgit` function. Because of that it was not possible to use `nix-prefetch-git` as a way to pre-populate the store (for example when the user it using private git dependencies that needs access to the ssh agent)
* Fix usage message in `nix-prefetch-git`Arnaud Spiwack2016-01-26
| | | | | | The comment related to the `deepClone` and `no-deepClone` options was misleading as these options have no relation with submodules, but on the the depth in `git clone --depth n`.
* Merge branch 'staging'Vladimír Čunát2016-01-22
|\
| * fetchgit: import impure GIT_PROXY_COMMAND and SOCKS_SERVER, fixes #8605Rok Garbas2016-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | These environment variables allow using fetchgit with git:// URLs using the SOCKS proxy technique described in 'Using Git with a SOCKS proxy': http://www.patthoyts.tk/blog/using-git-with-socks-proxy.html Briefly, GIT_PROXY_COMMAND is set to a script which invokes connect[1], which reads SOCKS_PROXY, which might be pointing to a local instance of 'ssh -D'. [1] pkgs/tools/networking/connect
* | Merge pull request #10998 from andrewrynhard/masterDomen Kožar2016-01-19
|\ \ | |/ |/| Add help flag to nix-prefetch-git
| * Add help flag to nix-prefetch-gitAndrew Rynhard2015-11-12
| |
* | fetchgit: follow up to 2cf7069b7da368326b51520536ac0f1020157f7aPeter Simons2015-12-06
| | | | | | | | | | | | | | | | If "fetcher" is a string, then Nix will execute it with bash already, so the additional bash argument in that string was redundant and apparently causes trouble on non-Linux platforms. Hopefully fixes https://github.com/NixOS/nixpkgs/issues/11496.
* | Merge recent staging built on HydraVladimír Čunát2015-12-05
|\ \ | | | | | | | | | | | | | | | http://hydra.nixos.org/eval/1231884 Only Darwin jobs seem to be queued now, but we can't afford to wait for that single build slave.
| * | Use the nix provided shell.Danny Wilson2015-11-16
| |/ | | | | | | | | This is guaranteed to be bash, SmartOS has ksh by default and doesn't work.
* | fetchgit: call in-repository script with bash explicitlyPeter Simons2015-11-29
| | | | | | | | | | | | The script's shebang depends on /usr/bin/env, which we don't have in chroot environments. This patch remedies the fallout from ade9f7167dd1fec6, which fixed https://github.com/NixOS/nixpkgs/issues/11284.
* | nix-prefetch-git: make sure the script is interpreted by bashPeter Simons2015-11-27
|/ | | | Fixes https://github.com/NixOS/nixpkgs/issues/11284.
* nix-prefetch-git: pull all tags from remote when checkouting by revisionNikolay Amiantov2015-09-20
| | | | | | | | Close #9790. This fixes checkouting for a nasty combination: 1. To be checkouted is a revision which corresponds to tag in a form "<tag>^{}". 2. This revision is not fetched by default.
* cacert: store ca-bundle.crt in $out/etc/ssl/certs instead of $outWilliam A. Kennington III2015-06-05
|
* Fix ca-bundle pathsWilliam A. Kennington III2015-05-29
|
* Add support for building cargo'ed Rust programsGeorges Dubus2015-04-21
|
* fetchgit: Add support for specifying branch nameRicardo M. Correia2015-04-21
| | | | | | | | This is useful when `leaveDotGit = true` and some other derivation expects some branch name to exist. Previously, `nix-prefetch-git` always created a branch with a hard-coded name (`fetchgit`).
* fetchgit: add 'deepClone' argument to disable shallow fetchingPeter Simons2015-03-10
| | | | | | | This patch resolves https://github.com/NixOS/nixpkgs/issues/6395. Deep cloning is useful in combination with 'leaveDotGit' for builds that want to run "git describe" to obtain a proper version string, etc., like the 'haskellngPackages.cabal2nix' package does.
* nix-prefetch-git: print commit date (close #6522)Bjørn Forsman2015-02-24
| | | | | The commit date can be used as a version number in packages that don't have proper releases.