nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 callPackage,
3 maturin,
4 writers,
5 python3Packages,
6}:
7
8# Build like this from nixpkgs root:
9# $ nix-build -A tests.importCargoLock
10{
11 basic = callPackage ./basic { };
12 basicDynamic = callPackage ./basic-dynamic { };
13 gitDependency = callPackage ./git-dependency { };
14 gitDependencyRev = callPackage ./git-dependency-rev { };
15 gitDependencyRevNonWorkspaceNestedCrate =
16 callPackage ./git-dependency-rev-non-workspace-nested-crate
17 { };
18 gitDependencyTag = callPackage ./git-dependency-tag { };
19 gitDependencyBranch = callPackage ./git-dependency-branch { };
20 maturin = maturin.tests.pyo3;
21 v1 = callPackage ./v1 { };
22 gitDependencyWorkspaceInheritance = callPackage ./git-dependency-workspace-inheritance {
23 replaceWorkspaceValues = writers.writePython3 "replace-workspace-values" {
24 libraries = with python3Packages; [
25 tomli
26 tomli-w
27 ];
28 flakeIgnore = [
29 "E501"
30 "W503"
31 ];
32 } (builtins.readFile ../../replace-workspace-values.py);
33 };
34}