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
The generated rust library does not get copied to result/lib even though copyLibs is set to true
The lib.rs file used
{inputs={naersk.url="github:nmattia/naersk/master";nixpkgs.url="github:NixOS/nixpkgs/nixpkgs-unstable";utils.url="github:numtide/flake-utils";mozillapkgs={url="github:mozilla/nixpkgs-mozilla";flake=false;};};outputs={self,nixpkgs,utils,naersk,mozillapkgs}:
utils.lib.eachDefaultSystem(system:
letpkgs=importnixpkgs{inheritsystem;};# Get a specific rust versionmozilla=pkgs.callPackage(mozillapkgs+"/package-set.nix"){};rust=(mozilla.rustChannelOf{date="2021-10-26";# get the current date with `date -I`channel="nightly";sha256="sha256-1hLbypXA+nuH7o3AHCokzSBZAvQxvef4x9+XxO3aBao==";}).rust;# Override the version used in naersknaersk-lib=naersk.lib."${system}".override{cargo=rust;rustc=rust;};in{defaultPackage=naersk-lib.buildPackage{src=./.;copyLibs=true;};defaultApp=utils.lib.mkApp{drv=self.defaultPackage."${system}";};devShell=withpkgs;mkShell{buildInputs=[cargorustcrustfmtpre-commitrustPackages.clippy];RUST_SRC_PATH=rustPlatform.rustLibSrc;};});}
The text was updated successfully, but these errors were encountered:
The generated rust library does not get copied to result/lib even though copyLibs is set to true
The lib.rs file used
The text was updated successfully, but these errors were encountered: