Commit Graph

41 Commits

Author SHA1 Message Date
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Michael Weiss
288fb1f2ba
gitRepo: 2.11 -> 2.11.1 2021-01-09 17:49:35 +01:00
Michael Weiss
e640da3120
gitRepo: 2.10 -> 2.11 2021-01-07 12:07:00 +01:00
Michael Weiss
7352db0f5d
gitRepo: 2.9 -> 2.10 2020-12-02 11:37:48 +01:00
Michael Weiss
fed923247a
gitRepo: 2.8 -> 2.9 2020-09-07 18:34:36 +02:00
Michael Weiss
9404c8ee74
gitRepo: 2.7 -> 2.8 2020-05-22 13:04:27 +02:00
Michael Weiss
ca5fa22a38
gitRepo: 2.6 -> 2.7 2020-05-06 13:27:03 +02:00
Michael Weiss
7c2fc1ce23
gitRepo: 2.5 -> 2.6 2020-04-16 14:37:22 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Michael Weiss
e571880c55
gitRepo: 2.4.1 -> 2.5 2020-03-25 19:07:36 +01:00
Michael Weiss
cc2ade3d7f
gitRepo: 2.3 -> 2.4.1 2020-02-25 10:06:29 +01:00
Michael Weiss
c1741fc12a
gitRepo: 2.1.1 -> 2.3 2020-02-14 01:06:36 +01:00
Michael Weiss
8ffa642baa
gitRepo: 2.0 -> 2.1.1 2020-02-11 18:32:29 +01:00
Michael Weiss
c213993880
gitRepo: 1.13.9.4 -> 2.0 2020-02-10 17:08:26 +01:00
Michael Weiss
828e383f84
gitRepo: 1.13.9.3 -> 1.13.9.4 2020-02-09 19:13:13 +01:00
Michael Weiss
5a0e91e78f
gitRepo: 1.13.9.2 -> 1.13.9.3 2020-02-06 21:49:21 +01:00
Michael Weiss
14e53a0508
gitRepo: Rewrite the "urllib.request.urlopen" patch for Python 3
The old variant is still working but setting "cafile" is deprecated
since version 3.6 [0] and generates a warning:
DeprecationWarning: cafile, capath and cadefault are deprecated, use a custom context instead.

But without this patch "fetchRepoProject" still fails with
"error no host given" (see 337380ea1d).

[0]: https://docs.python.org/3.7/library/urllib.request.html#urllib.request.urlopen
2020-02-05 21:34:49 +01:00
Michael Weiss
7c558f7ac7
gitRepo: 1.13.9.1 -> 1.13.9.2 2020-02-05 21:01:38 +01:00
Michael Weiss
eacc771f72
gitRepo: Switch to Python 3 2020-02-04 14:45:57 +01:00
Michael Weiss
7d4b5a2154
gitRepo: 1.13.8 -> 1.13.9.1 2020-02-04 14:45:57 +01:00
Michael Weiss
f7b894e031
gitRepo: 1.13.7.1 -> 1.13.8 2019-11-19 11:08:58 +01:00
Michael Weiss
597881a9e1
gitRepo: 1.13.7 -> 1.13.7.1 2019-10-22 21:23:49 +02:00
Michael Weiss
bd16602cb9
gitRepo: 1.13.6 -> 1.13.7 2019-10-09 18:02:22 +02:00
Michael Weiss
1c8ed8fd7e
gitRepo: 1.13.5.1 -> 1.13.6 2019-09-17 21:28:29 +02:00
Michael Weiss
3c6d4d7e06
gitRepo: 1.13.5 -> 1.13.5.1 2019-08-30 22:54:27 +02:00
Michael Weiss
a66012b3ec
gitRepo: 1.13.4 -> 1.13.5 2019-08-30 17:53:58 +02:00
Michael Weiss
b515a14c8f
gitRepo: 1.13.3 -> 1.13.4 2019-07-27 22:11:21 +02:00
Michael Weiss
a712174a6a
gitRepo: 1.13.2 -> 1.13.3 2019-06-04 22:39:32 +02:00
Michael Weiss
cc5f7d9091
gitRepo: Cleanup the patchPhase
This variant should be easier to read (it was pretty messy before...).
The end result stays the same.
2019-01-19 12:30:08 +01:00
Michael Weiss
afb6a7fe00
gitRepo: 1.13.1 -> 1.13.2 2019-01-15 22:20:17 +01:00
Michael Weiss
0aac84e1c3 gitRepo: 1.13.0 -> 1.13.1 2018-12-20 22:10:57 +01:00
Michael Weiss
1c63a4678a gitRepo: 1.12.37 -> 1.13.0 2018-12-13 20:46:13 +01:00
Michael Weiss
337380ea1d gitRepo: Fix an error due to missing TLS certificates
This was a problem when run inside a sandbox, e.g. via
"fetchRepoProject". The error message from repo seems unrelated:

fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error no host given

But the exception is actually thrown due to missing certificates
(/etc/ssl/certs). It should be possible to provide another location via
environment variables (e.g. SSL_CERT_FILE, REQUESTS_CA_BUNDLE or
CURL_CA_BUNDLE) but apparently that doesn't actually work for some
reason (would have to study our Python packaging).

Now "fetchRepoProject" works without the "--no-clone-bundle" option.
2017-09-16 22:13:56 +02:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Michael Weiss
175ecbab91 gitRepo: Improve the packaging
Improvements:
- Use a versioned URL
  - The build won't break anymore (due to a wrong hash) after a new
    version is being released
  - It will be possible to build older versions
- Add (hopefully all) runtime dependencies (Git, GnuPG and less (for
  "repo help"))
- Add the upstream license
- Add a long description
- Use the name of the Git tag for the version
  - The version number from the script (currently 1.23) is only
    incremented after "important" changes (i.e. there are slightly
    different different scripts with "VERSION = (1, 23)")
2017-05-26 16:04:15 +02:00
Graham Christensen
076e3ae32c
gitRepo: 1.22 -> 1.23 2016-11-28 14:48:49 -05:00
Tuomas Tynkkynen
21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00
Edward Tjörnhammar
f02eed27f9 gitRepo: 1.21 -> 1.22 2015-09-16 19:13:27 +02:00
Adam Bouhenguel
8e09c97d1c Bump git-repo to 1.21
Still no versioned URL, but there’s been a new release. SHA1 pulled
from http://source.android.com/source/downloading.html#installing-repo.
2014-11-01 17:28:25 -07:00
Florian Friesdorf
7a988c62af git-repo-1.20, update and pin python 2013-12-26 01:01:01 +01:00
Florian Friesdorf
46f627e8f7 git-repo-1.19 2013-12-26 00:45:21 +01:00