G
Size: a a a
b
etc/nix/default.nix
etc/nix/bioyino/default.nix
(ее загружает в nixpkgs_overlays
основная деривация что выше)nix-shell etc/nix
. Как можно в этот шелл сборки войти с такой структурой?b
{ stdenv, lib, fetchFromGitHub, rustPlatform, capnproto }:
rustPlatform.buildRustPackage rec {
name = "${pname}-${version}";
pname = "bioyino";
version = "0.7.0";
src = fetchFromGitHub {
owner = "avito-tech";
repo = pname;
rev = "7403663d039660055abd9782c1b0dcfb41f610d9";
sha256 = "02n6jc78c7l4dh0zjfjhwhp5lpmmd1mfj75aacr1chfgwcmj2rjq";
};
cargoSha256 = "sha256:1fxl13fxwaj8psgy34g6xxajday2bcv9qq3mkmd2n000z3zxinyf";
cargoPatches = [ ./add-Cargo.lock.patch ];
buildInputs = [ capnproto ];
verifyCargoDeps = true;
preConfigure = ''
export HOME=$(mktemp -d)
'';
}
capnp
компилятора. Как это можно исправить?error: failed to run custom build command for bioyino-metric v0.3.1 (https://github.com/Albibek/bioyino-metric#cd5b0f05)
Caused by:
process didn't exit successfully: `/build/source/target/release/build/bioyino-metric-1d8aac9526a365ed/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Failed compiling messages schema: Error { kind: Failed, description: "Error while trying to execute `capnp compile`: Failed: No such file or directory (os error 2). Please verify that version 0.5.2 or higher of the capnp executable is installed on your system. See https://capnproto.org/install.html" }', /build/bioyino-0.7.0-vendor.tar.gz/bioyino-metric/build.rs:7:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
crateOverrides
, но не получается применить ее для субпакета bioyino-metric
изнутри моей деривации bioyino
: Пробую как-то так:crateOverrides = pkgs.defaultCrateOverrides // {
bioyino-metric = attrs: { buildInputs = [ capnproto ]; };
};
error: cannot coerce a set to a string, at /home/null/git/q/etc/nix/bioyino/default.nix:11:5
С
С
С