TZ
Size: a a a
TZ
АБ
(mkShell.override { stdenv = stdenvNoCC; }) { ... }
N
(mkShell.override { stdenv = stdenvNoCC; }) { ... }
N
mkDerivation
использовать, просто name прописатьVL
myUngoogledChromium = symlinkJoin {
name = "ungoogled-chromium";
paths = [ ungoogled-chromium ];
buildInputs = [ makeWrapper ];
postBuild = ''
makeWrapper $out/bin/chromium $out/bin/chromium-incognito --add-flags "-incognito"
'';
};
VL
myUngoogledChromium = symlinkJoin {
name = "ungoogled-chromium";
paths = [ ungoogled-chromium ];
buildInputs = [ makeWrapper ];
postBuild = ''
makeWrapper $out/bin/chromium $out/bin/chromium-incognito --add-flags "-incognito"
'';
};
АБ
mkDerivation
использовать, просто name прописатьinputsFrom
придется самому делатьG
TZ
АБ
d
M
M
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...
G
{ 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...