diff options
| author | Daniël de Kok <me@danieldk.eu> | 2021-05-08 07:40:34 +0200 |
|---|---|---|
| committer | Daniël de Kok <me@danieldk.eu> | 2021-05-28 08:01:25 +0200 |
| commit | 2f46d77e2806dd22f4ec4ac6ea3f9981df81dd94 (patch) | |
| tree | 183d40193716d2e8a8e17b796cbe43aa2ab860ff /pkgs/development/python-modules/python-mapnik | |
| parent | 1c16013bd6e94da748b41cc123c6b509a23eb440 (diff) | |
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.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik')
0 files changed, 0 insertions, 0 deletions
