mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 17:53:14 +00:00
115e3413e1
v1 lock files (generated by default by Cargo versions 1.40 and below) use a single table, `metadata`, to store the checksums of packages. The primary motivation for doing this now is that we're considering vendoring all Cargo lock files in Nixpkgs, some packages still use it (e.g. cargo-asm), and adding support for it doesn't increase the complexity of the function. No matter the outcome of the vendoring discussion, this is a nice thing to have because Cargo still supports v1 lock files.
16 lines
595 B
Nix
16 lines
595 B
Nix
{ callPackage }:
|
|
|
|
# Build like this from nixpkgs root:
|
|
# $ nix-build -A tests.importCargoLock
|
|
{
|
|
basic = callPackage ./basic { };
|
|
basicDynamic = callPackage ./basic-dynamic { };
|
|
gitDependency = callPackage ./git-dependency { };
|
|
gitDependencyRev = callPackage ./git-dependency-rev { };
|
|
gitDependencyRevNonWorkspaceNestedCrate = callPackage ./git-dependency-rev-non-workspace-nested-crate { };
|
|
gitDependencyTag = callPackage ./git-dependency-tag { };
|
|
gitDependencyBranch = callPackage ./git-dependency-branch { };
|
|
maturin = callPackage ./maturin { };
|
|
v1 = callPackage ./v1 { };
|
|
}
|