Merge pull request #303146 from oliviacrain/icl-si
tests.importCargoLock: fix self-inclusive src listings in .nix files
This commit is contained in:
commit
4c00536dff
@ -1,10 +1,19 @@
|
||||
{ rustPlatform }:
|
||||
|
||||
{ lib, rustPlatform }:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "basic-dynamic";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./Cargo.toml
|
||||
./Cargo.lock
|
||||
./src
|
||||
];
|
||||
};
|
||||
|
||||
cargoLock.lockFileContents = builtins.readFile ./Cargo.lock;
|
||||
|
||||
|
@ -1,10 +1,19 @@
|
||||
{ rustPlatform }:
|
||||
|
||||
{ lib, rustPlatform }:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "basic";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./Cargo.toml
|
||||
./Cargo.lock
|
||||
./src
|
||||
];
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
@ -1,10 +1,19 @@
|
||||
{ rustPlatform }:
|
||||
|
||||
{ lib, rustPlatform }:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "git-dependency-branch";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./Cargo.toml
|
||||
./Cargo.lock
|
||||
./src
|
||||
];
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
@ -1,10 +1,19 @@
|
||||
{ rustPlatform, pkg-config, openssl, lib, darwin, stdenv }:
|
||||
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "git-dependency-rev-non-workspace-nested-crate";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./Cargo.toml
|
||||
./Cargo.lock
|
||||
./src
|
||||
];
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
|
@ -1,10 +1,19 @@
|
||||
{ rustPlatform }:
|
||||
|
||||
{ lib, rustPlatform }:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "git-dependency-rev";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./Cargo.toml
|
||||
./Cargo.lock
|
||||
./src
|
||||
];
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
@ -1,10 +1,19 @@
|
||||
{ rustPlatform }:
|
||||
|
||||
{ lib, rustPlatform }:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "git-dependency-tag";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./Cargo.toml
|
||||
./Cargo.lock
|
||||
./src
|
||||
];
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
@ -1,10 +1,19 @@
|
||||
{ rustPlatform }:
|
||||
|
||||
{ lib, rustPlatform }:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "git-dependency";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./Cargo.toml
|
||||
./Cargo.lock
|
||||
./src
|
||||
];
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
@ -1,10 +1,19 @@
|
||||
{ rustPlatform }:
|
||||
|
||||
{ lib, rustPlatform }:
|
||||
let
|
||||
fs = lib.fileset;
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "v1";
|
||||
version = "0.1.0";
|
||||
|
||||
src = ./.;
|
||||
src = fs.toSource {
|
||||
root = ./.;
|
||||
fileset = fs.unions [
|
||||
./Cargo.toml
|
||||
./Cargo.lock
|
||||
./src
|
||||
];
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
Loading…
Reference in New Issue
Block a user