Commit Graph

287377 Commits

Author SHA1 Message Date
Daniël de Kok
d3769e43c3 rustPlatform.importCargoLock: add test cases for importCargoLock 2021-05-28 08:01:28 +02:00
Daniël de Kok
b3969f3ad7 rustPlatform.buildRustPackage: support direct use of Cargo.lock
This change introduces the cargoLock argument to buildRustPackage,
which can be used in place of cargo{Sha256,Hash} or cargoVendorDir. It
uses the importCargoLock function to build the vendor
directory. Differences compared to cargo{Sha256,Hash}:

- Requires a Cargo.lock file.
- Does not require a Cargo hash.
- Retrieves all dependencies as fixed-output derivations.

This makes buildRustPackage much easier to use as part of a Rust
project, since it does not require updating cargo{Sha256,Hash} for
every change to the lock file.
2021-05-28 08:01:28 +02:00
Daniël de Kok
2f46d77e28 rustPlatform.importCargoLock: init
This function can be used to create an output path that is a cargo
vendor directory. In contrast to e.g. fetchCargoTarball all the
dependent crates are fetched using fixed-output derivations. The
hashes for the fixed-output derivations are gathered from the
Cargo.lock file.

Usage is very simple, e.g.:

importCargoLock {
  lockFile = ./Cargo.lock;
}

would use the lockfile from the current directory.

The implementation of this function is based on Eelco Dolstra's
import-cargo:

https://github.com/edolstra/import-cargo/blob/master/flake.nix

Compared to upstream:

- We use fetchgit in place of builtins.fetchGit.
- Sync to current cargo vendoring.
2021-05-28 08:01:25 +02:00
Robert Schütz
1c16013bd6
Merge pull request #120318 from dotlambda/dask-glm-fix
python3Packages.dask*: various improvements
2021-05-07 09:55:06 +02:00
adisbladis
f24368660b
Merge pull request #121954 from collares/native-comp-renames
emacs: adapt to renamed native-comp variables
2021-05-07 02:28:32 -05:00
Sandro
db98dee459
Merge pull request #121902 from dotlambda/mousai-0.3.2
mousai: 0.3.1 -> 0.3.2
2021-05-07 09:26:11 +02:00
Sandro
c989366b22
Merge pull request #121857 from dotlambda/presage-init
presage: init at 0.9.1
2021-05-07 09:23:44 +02:00
Fabian Affolter
fc8162a69b
Merge pull request #121984 from r-ryantm/auto-update/httpx
httpx: 1.0.5 -> 1.0.6
2021-05-07 08:39:44 +02:00
R. RyanTM
1f5e612b48 gleam: 0.14.4 -> 0.15.0 2021-05-07 15:38:34 +09:00
Vincent Laporte
4fb15bc739 coqPackages.VST: 2.6 → 2.7.1 2021-05-07 08:35:13 +02:00
Vincent Laporte
b333692c87 compcert: add support for Coq 8.13 2021-05-07 08:35:13 +02:00
R. RyanTM
ceb56fa02f httpx: 1.0.5 -> 1.0.6 2021-05-07 04:49:47 +00:00
Yusuf Bera Ertan
240b3cd5d3 pythonPackages.hydrus: 436 -> 438 2021-05-06 21:20:18 -07:00
Ivar Scholten
33d042b667 snapdragon-profiler: init at v2021.2
Co-authored-by: PixelyIon <pixelyion@protonmail.com>
2021-05-06 21:17:39 -07:00
Eduardo Sánchez Muñoz
5a389e9fd4 minetest: 5.3.0 -> 5.4.1 2021-05-07 00:03:40 -04:00
Mario Rodas
85d4d9489e
Merge pull request #121952 from maxeaubrey/terraform_0.15.3
terraform_0_15: 0.15.2 -> 0.15.3
2021-05-06 22:17:06 -05:00
Mario Rodas
e62feb3bf4
Merge pull request #121866 from marsam/update-julia-mono
julia-mono: 0.035 -> 0.037
2021-05-06 20:38:19 -05:00
Ryan Mulligan
8cbf19282d
Merge pull request #121064 from r-ryantm/auto-update/intel-media-sdk
intel-media-sdk: 20.5.1 -> 21.2.0
2021-05-06 18:14:29 -07:00
Ryan Mulligan
a87f97a407
Merge pull request #121317 from r-ryantm/auto-update/libthreadar
libthreadar: 1.3.1 -> 1.3.2
2021-05-06 18:13:12 -07:00
Ryan Mulligan
b729fa4170
Merge pull request #121747 from r-ryantm/auto-update/libdnf
libdnf: 0.61.1 -> 0.62.0
2021-05-06 17:59:07 -07:00
Mario Rodas
1bf5e3fa8d
Merge pull request #121860 from marsam/update-tflint
tflint: 0.28.0 -> 0.28.1
2021-05-06 19:40:56 -05:00
Ryan Mulligan
b340268600
Merge pull request #121930 from r-ryantm/auto-update/fcitx5-m17n
fcitx5-m17n: 5.0.4 -> 5.0.5
2021-05-06 17:14:46 -07:00
Martin Weinelt
934212224d
Merge pull request #121957 from fabaff/bump-ondilo
python3Packages.ondilo: 0.2.0 -> 0.3.0
2021-05-07 02:11:53 +02:00
Silvan Mosberger
527861959b
Merge pull request #119406 from sternenseemann/toDerivation-list
lib/attrsets: make toDerivation x always work when isStorePath x
2021-05-07 02:09:05 +02:00
Robert Hensing
0633b6aa74
Merge pull request #121870 from Pacman99/pass-specialargs
lib/modules: pass specialArgs to modules
2021-05-07 01:54:48 +02:00
sternenseemann
f39a5c4e50 lib/strings: forbid lists in isStorePath
When a list is passed to isStorePath this is most likely a mistake and
it is therefore better to just return false. There is one case where
this theoretically makes sense (if a list contains a single element for
which isStorePath elem), but since that case is also probably seldomly
intentional, it may save someone from debbuging unclear evaluation
errors.
2021-05-07 01:22:30 +02:00
sternenseemann
326d0970e0 lib/strings: fix example for isStorePath
Since it checks if dirOf x is the nix store dir, a trailing slash will
break this check and make it return false.
2021-05-07 01:22:30 +02:00
Vincent Laporte
86878f63f9 coqPackages.CoLoR: 1.7.0 → 1.8.1 2021-05-07 01:06:52 +02:00
Pacman99
87c659ab94 nixos/top-level: specialArgs to specialisations 2021-05-06 16:04:08 -07:00
Pacman99
c949e60220 lib/modules: pass specialArgs as a module argument 2021-05-06 16:04:08 -07:00
Fabian Affolter
6358647558
Merge pull request #121783 from fabaff/bump-nuclei
nuclei: 2.3.4 -> 2.3.6
2021-05-07 00:32:18 +02:00
Vladimír Čunát
4fac78928c
Merge #121794: pidgin: weaken install checks on non-Linux 2021-05-06 23:39:18 +02:00
Fabian Affolter
c9beab5997 python3Packages.ondilo: 0.2.0 -> 0.3.0 2021-05-06 23:37:50 +02:00
Sandro
7c6ef9c220
Merge pull request #121918 from romildo/upd.xfce4-panel
xfce.xfce4-panel: 4.16.2 -> 4.16.3
2021-05-06 23:26:46 +02:00
Sandro
e9ff0a68fb
Merge pull request #121904 from marsam/update-timescaledb
postgresqlPackages.timescaledb: 2.2.0 -> 2.2.1
2021-05-06 23:25:47 +02:00
Sandro
a3f184dba7
Merge pull request #121922 from romildo/upd.marwaita
marwaita: 8.0 -> 9.0
2021-05-06 23:20:36 +02:00
Sandro
a48a2e807b
Merge pull request #121824 from evalexpr/add-altair-graphql-client
altair-graphql-client: init at version 4.0.2
2021-05-06 23:14:33 +02:00
Maximilian Bosch
730ec2ac89
Merge pull request #121851 from mayflower/hedgewars-ffmpeg4
hedgewars: use ffmpeg 4
2021-05-06 23:07:27 +02:00
Maximilian Bosch
5837b993c2
Merge pull request #121946 from blitz/tailscale-1.8
tailscale: 1.6.0 -> 1.8.0
2021-05-06 22:56:09 +02:00
Maximilian Bosch
cc0cc48e5d
Merge pull request #121890 from cmm/distcc-2021-03-11
distcc: 2016-02-24 -> 2021-03-11
2021-05-06 22:52:29 +02:00
Maximilian Bosch
408a6e4163
Merge pull request #121928 from Luflosi/update/kitty
kitty: 0.20.2 -> 0.20.3
2021-05-06 22:43:05 +02:00
Kristoffer Søholm
ae58a56abb
pythonPackages.pwntools: add bash completions (#121907)
Also fixed some PR review warnings
2021-05-06 22:05:27 +02:00
Michael Raskin
3b3671ba99
Merge pull request #121784 from fabaff/bump-siege
siege: 4.0.8 -> 4.0.9
2021-05-06 19:47:32 +00:00
Mauricio Collares
67bbabc0a4 emacs: adapt to renamed native-comp variables 2021-05-06 16:47:21 -03:00
Maxine Aubrey
31ba37e111
terraform_0_15: 0.15.2 -> 0.15.3 2021-05-06 21:44:29 +02:00
Sander van der Burg
5af7d3ebbd
Merge pull request #121936 from svanderburg/disnix_style_fixes
Disnix style fixes
2021-05-06 21:30:59 +02:00
Julian Stecklina
5686421c0a tailscale: 1.6.0 -> 1.8.0 2021-05-06 21:26:11 +02:00
Jonathan Ringer
ac36e938f2 python3Packages.azure-storage: fix missing dep 2021-05-06 11:50:10 -07:00
Jonathan Ringer
00cb1ea400 azure-cli: 2.20.0 -> 2.23.0 2021-05-06 11:50:10 -07:00
Jonathan Ringer
fa58d21382 python3Packages.azure-mgmt-servicefabricmanagedclusters: init at 1.0.0 2021-05-06 11:50:10 -07:00