Commit Graph

208810 Commits

Author SHA1 Message Date
Andreas Rammhold
3e61906e1c
buildRustCrate: slight "rewording" and reformatting
There is no point in reinventinb builtins through `filterAttrs` or the
like. Lets just stick to what we already have in our toolbelt.
2020-01-07 11:57:34 +01:00
Andreas Rammhold
a3a51763f9
buildRustCrate: add buildTests flag to tell rustc to build tests instead of binaries
This helps us instruct rustc to build tests instead of binaries. The
actual build will then ONLY produce test executables. This is a first
step towards having rust crate tests within nixpkgs.

We default back to only a single output in test cases since that is the
only reasonable thing to do here.

Producing libraries or binaries in addition to tests would theoretically
be feasible but usually generates different dependency trees. It is very
common to have some libraries in `[dev-depdendencies]` within Cargo.toml
just for your tests. To not start mixing things up going with a
dedicated derivation for the test build sounds like the best choice for
now.

To use this you must provide a proper test dependency chain to
`buildRustCrate` (as you would usually do with your non-test inputs).
And then set the `buildTests` attribute to `true`. The derivation will
then contain all tests that were built in `$out/tests`. All common test
patterns and directories should be supported and tested by this change.

Below is an example how you would run a single test from the derivation.
This commit contains some more examples in the `buildRustCrateTests`
attribute set that might be helpful.

```
let
  drv = buildRustCrate {
     …
     buildTests true;
  };
in runCommand "test-my-crate" {} ''
  touch $out
  exec ${drv}/tests/my-test
''
```
2020-01-07 11:57:34 +01:00
R. RyanTM
eef6de7a09 python27Packages.opentracing: 2.2.0 -> 2.3.0 2020-01-07 02:56:39 -08:00
R. RyanTM
93c2475017 python37Packages.irc: 17.1 -> 18.0.0 2020-01-07 02:51:02 -08:00
Andreas Rammhold
2c4c7c929c
Merge pull request #77153 from andir/buildRustCrateHelpers-fix
buildRustCrate: fixup usage of `builtins.filterSource`
2020-01-07 11:41:03 +01:00
Mario Rodas
a7ecd2a93b
Merge pull request #77185 from r-ryantm/auto-update/pgmodeler
pgmodeler: 0.9.1 -> 0.9.2
2020-01-07 05:33:01 -05:00
Pascal Wittmann
60abbbb182
Merge pull request #77171 from r-ryantm/auto-update/opkg
opkg: 0.4.1 -> 0.4.2
2020-01-07 11:25:34 +01:00
Daniel Schaefer
5992086c28
Merge pull request #77202 from raboof/jitterentropy-reproducible-manpages
jitterentropy: make man pages reproducible
2020-01-07 11:13:23 +01:00
Chris Ostrouchov
41d1ac24ba pythonPackages.JayDeBeApi: refactor formatting and metadata changes 2020-01-07 02:10:48 -08:00
Chris Ostrouchov
3c0d4f2dc3 pythonPackages.JPype1: refactor fix broken build 2020-01-07 02:10:48 -08:00
Jonathan Ringer
367085bc8a python3Packages.numexpr: 2.7.0 -> 2.7.1 2020-01-07 10:50:14 +01:00
Eric Bailey
826df23514 pythonPackages.bugwarrior: depend on jira, remove test deps
- drop support for 2.7, per upstream
- remove half-baked checkInputs, but leave comment
- add yurrriq as maintainer
- add setuptools to propagatedBuildInputs
2020-01-07 01:50:03 -08:00
Timo Kaufmann
e8def5b1e0
Merge pull request #77130 from timokau/home-manager-2020-01-04
home-manager: 2019-11-17 -> 2020-01-04
2020-01-07 10:49:16 +01:00
Milan Pässler
fe2742cee4 python: pyspf: 2.0.13 -> 2.0.14pre1 2020-01-07 01:40:15 -08:00
Arnout Engelen
96167307bd jitterentropy: make man pages reproducible 2020-01-07 10:26:53 +01:00
Mario Rodas
d465a40fb2
dune_2: 2.1.0 -> 2.1.1 2020-01-07 04:20:00 -05:00
R. RyanTM
110ea2f63f python37Packages.pikepdf: 1.8.1 -> 1.8.2 2020-01-07 01:09:29 -08:00
R. RyanTM
55c3ad693d python27Packages.jenkins-job-builder: 3.1.0 -> 3.2.0 2020-01-07 00:48:35 -08:00
markuskowa
7de7b51741
Merge pull request #77173 from r-ryantm/auto-update/openmpt123
openmpt123: 0.4.10 -> 0.4.11
2020-01-07 09:36:13 +01:00
markuskowa
9a805e9b4f
Merge pull request #76941 from Pamplemousse/bash_unit
bash_unit: init at 1.6.1
2020-01-07 09:31:53 +01:00
R. RyanTM
e28fe589d9 primesieve: 7.4 -> 7.5 2020-01-07 00:22:48 -08:00
R. RyanTM
2a4de1511a python27Packages.awkward: 0.12.18 -> 0.12.19 2020-01-06 23:57:14 -08:00
R. RyanTM
fea295150e pulseeffects: 4.6.9 -> 4.7.0 2020-01-06 23:50:17 -08:00
worldofpeace
f55ec6fd69
Merge pull request #77092 from worldofpeace/pantheon-update-jan-6
[ci] pantheon.elementary-terminal: 5.4.0 -> 5.5.0, pantheon.elementary-gtk-theme: 5.3.0 -> 5.4.0
2020-01-07 02:22:09 -05:00
R. RyanTM
c4571f2268 pgmodeler: 0.9.1 -> 0.9.2 2020-01-06 23:10:20 -08:00
worldofpeace
04f6b5c945
Merge pull request #77177 from petabyteboy/feature/loaof-deprecation
tree-wide: fix errors and warning related to loaOf deprecation
2020-01-07 02:10:16 -05:00
Hernawan Faïz Abdillah
82a2a9eabf
androidenv.lldb: Fix libssl not found 2020-01-07 14:02:13 +07:00
Rakesh Gupta
f412725449 pythonPackages.imgaug: 0.3.0-patch 2020-01-06 22:51:05 -08:00
R. RyanTM
1edb9dc658 picolisp: 19.6 -> 19.12 2020-01-06 22:25:42 -08:00
R. RyanTM
bd3e6a593c pcsctools: 1.5.4 -> 1.5.5 2020-01-06 21:35:17 -08:00
Milan Pässler
2a31a6a412 tree-wide: fix errors and warning related to loaOf deprecation 2020-01-07 06:23:28 +01:00
Matthew Bauer
ddcaa0cd2f
Merge pull request #76842 from matthewbauer/add-doc-to-ghc-wrapper
haskell/with-packages-wrapper.nix: install "doc" outputs
2020-01-07 00:23:15 -05:00
R. RyanTM
7ee13b98fb ocserv: 0.12.5 -> 0.12.6 2020-01-06 21:12:15 -08:00
Daniel Schaefer
370355449f
orcania: 2.0.1 -> 2.1.0 (#77168)
orcania: 2.0.1 -> 2.1.0
2020-01-07 06:12:15 +01:00
R. RyanTM
caaf6fbdd7 papirus-icon-theme: 20191201 -> 20200102 2020-01-06 21:02:30 -08:00
R. RyanTM
74b913a9e8 openmpt123: 0.4.10 -> 0.4.11 2020-01-06 20:26:32 -08:00
R. RyanTM
93c885781a mpd: 0.21.17 -> 0.21.18 2020-01-07 04:13:33 +00:00
R. RyanTM
f829159932 parallel: 20191122 -> 20191222 2020-01-06 20:04:50 -08:00
R. RyanTM
c755f046a6 opkg: 0.4.1 -> 0.4.2 2020-01-06 19:59:32 -08:00
Mario Rodas
c2d2e4ff42
Merge pull request #77135 from r-ryantm/auto-update/libimagequant
libimagequant: 2.12.5 -> 2.12.6
2020-01-06 22:57:21 -05:00
Mario Rodas
1e6917a4f2
Merge pull request #77116 from r-ryantm/auto-update/jtc
jtc: 1.74 -> 1.75c
2020-01-06 22:54:39 -05:00
R. RyanTM
cc98c9fbb2 pcb: 4.2.0 -> 4.2.1 2020-01-06 19:47:54 -08:00
R. RyanTM
9215b50ec1 orcania: 2.0.1 -> 2.1.0 2020-01-06 19:43:40 -08:00
R. RyanTM
42a0d7f315 neovim-remote: 2.2.3 -> 2.4.0 2020-01-06 19:10:52 -08:00
Ryan Mulligan
fdf4002d70
Merge pull request #77098 from r-ryantm/auto-update/git-machete
gitAndTools.git-machete: 2.12.5 -> 2.12.6
2020-01-06 19:00:10 -08:00
Ryan Mulligan
8e0b0d08c2
Merge pull request #77125 from r-ryantm/auto-update/last
last: 1042 -> 1045
2020-01-06 18:51:09 -08:00
R. RyanTM
4068a753d5 msmtp: 1.8.6 -> 1.8.7 2020-01-06 18:00:04 -08:00
Aaron Andersen
c6b8d7912c kdev-python: 5.4.5 -> 5.4.6 2020-01-06 20:59:09 -05:00
Aaron Andersen
3980119c29 kdev-php: 5.4.5 -> 5.4.6 2020-01-06 20:58:55 -05:00
Aaron Andersen
a8db490969 kdevelop: 5.4.5 -> 5.4.6 2020-01-06 20:58:39 -05:00