You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before anything else sorry for this very vague title.
I am trying to build containers/youki@01acab9 which refers to a package oci_spec as follows in its Cargo.toml
oci_spec = { version = "0.1.0", path = "./oci_spec" }
but build it fails with this error
warning: Git tree '/home/humancalico/repos/youki' is dirty
error: builder for '/nix/store/phm55ih3ij69x9w9vwyvnj8i0v2kx2f0-youki-deps-0.0.1.drv' failed with exit code 101;
last 10 log lines:
>
> Caused by:
> Unable to update /build/dummy-src/oci_spec
>
> Caused by:
> failed to read `/build/dummy-src/oci_spec/Cargo.toml`
>
> Caused by:
> No such file or directory (os error 2)
> [naersk] cargo returned with exit code 101, exiting
For full logs, run 'nix log /nix/store/phm55ih3ij69x9w9vwyvnj8i0v2kx2f0-youki-deps-0.0.1.drv'.
error: 1 dependencies of derivation '/nix/store/m6bnkq1bkg4h51s5rd3igvq611dsz526-youki-0.0.1.drv' failed to build
adding the package as a workspace like this in Cargo.toml fixes it
[workspace]
members = [
"oci_spec",
]
flake.nix
{description="A container runtime written in Rust";inputs={utils.url="github:numtide/flake-utils";naersk.url="github:nmattia/naersk";};outputs={self,nixpkgs,utils,naersk}:
utils.lib.eachDefaultSystem(system: let# cargoToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml));pkgs=nixpkgs.legacyPackages."${system}";naersk-lib=naersk.lib."${system}";inrec{# `nix build`packages.youki=naersk-lib.buildPackage{pname="youki";root=./.;buildInputs=withpkgs;[pkg-configsystemddbus];};defaultPackage=packages.youki;# `nix run`apps.youki=utils.lib.mkApp{drv=packages.youki;};defaultApp=apps.youki;# `nix develop`devShell=pkgs.mkShell{nativeBuildInputs=withpkgs;[rustccargorustfmtsystemddbusgo];};});}
The text was updated successfully, but these errors were encountered:
Before anything else sorry for this very vague title.
I am trying to build containers/youki@01acab9 which refers to a package
oci_spec
as follows in its Cargo.tomlbut build it fails with this error
adding the package as a workspace like this in Cargo.toml fixes it
flake.nix
The text was updated successfully, but these errors were encountered: