d3018c4522
In restricted mode (and therefore with flakes) `builtins.readFile` may not be the result of `builtins.toFile`, making it impossible to use a generated lockFile (with or without IFD), and thereby causing evaluation to fail if `system != builtins.currentSystem` on Hydra so the jobs are not delegated to eligible build machines that support that system. This is done in a way that avoids rebuilds.
17 lines
264 B
Nix
17 lines
264 B
Nix
{ rustPlatform }:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "basic-dynamic";
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
cargoLock.lockFileContents = builtins.readFile ./Cargo.lock;
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
$out/bin/basic-dynamic
|
|
'';
|
|
}
|