I have a flake.nix:
{
inputs = {
utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
};
outputs = { self, naersk, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { };
naersk-lib = pkgs.callPackage naersk { };
cherami-build = naersk-lib.buildPackage { src = ./cherami; };
in with pkgs; {
packages.cherami = pkgs.lib.getExe' cherami-build "cherami";
});
}
But I’m getting an error:
root@b62e2017d34d:/workspaces/bitbop# nix build .#cherami
warning: Git tree '/workspaces/bitbop' is dirty
error:
… while evaluating the flake output attribute 'packages.aarch64-linux.cherami'
error: string '/nix/store/ij52j1xp7w2cm0a8f8qp7w3ymlgkarjb-cherami-0.0.0/bin/cherami' has context with the output 'out' from derivation '/nix/store/sdmq12gxhhnbc79899iykm3la8y8ycjb-cherami-0.0.0.drv', but the string is not the right placeholder for this derivation output. It should be '/nix/store/ij52j1xp7w2cm0a8f8qp7w3ymlgkarjb-cherami-0.0.0'
root@b62e2017d34d:/workspaces/bitbop#
but I have verified that the file /nix/store/<hash>-cherami-0.0.0/bin/cherami
exists.
What does this error mean? Why am I getting it?