Closed khaled closed 1 month ago
That's why there's a step (2) in the installation to configure devenv cachix.
@domenkozar I did perform that step, as illustrated in the log I shared :). The source builds of aws-sdk-cpp and nix happen regardless.
Also saw this behavior installing last night. Setup cache using cachix use devenv
- basic flake sample:
{
description = "build flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
devenv.url = "github:cachix/devenv/latest";
devenv.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, devenv, ... }:
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
{
environment.systemPackages = [
devenv.packages.x86_64-linux.devenv
];
}
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.myuser = import ./home.nix;
}
];
};
}
built just fine, just had to build from source like described
Most likely due to CI failing fast, I've pushed https://github.com/cachix/devenv/commit/47eb4d1f12a9209913a485f9df945c2a404a918a that should address it.
@domenkozar, devenv doesn't have builds for aarch64-linux
, right? That would explain the build from source. aarch64-darwin
should've been cached though, unless this builder isn't aarch64
?
@darkone23, what system are you using?
I can confirm that this happens on aarch64-linux
(my raspberrypi) after following both the instruction of #575 and the instructions after cachix use devenv
. How do I check if there are cached builds?
We'll setup an aarch64-linux builder
I've added aarch64-linux builder in https://github.com/cachix/devenv/pull/652
Happens for me as well. I am on x86_64-linux and it try to rebuild everything from source even though cachix is already installed :(
Can you paste the output by passing -vvv
to nix?
@domenkozar, could some of the releases have been GC'd from the cache? We should pin them!
I think this can be closed as we moved to nixpkgs right? @domenkozar
Describe the bug
Installation of devenv is slow, AFAICT because aws-sdk-cpp and nix-2.12.0pre are built from source rather than pulled from cache.
To Reproduce
The steps below are run in the official nix docker container, though I've observed the same behavior on aarch64-darwin (locally), and on aarch64-linux (a VM):
Version
devenv: 0.6.2