I’m trying to package a Go application with Nix. I’m not a Go developer, so I might be missing something obvious. The expression that I’m starting from is minimal and follows examples seen elsewhere. This is on nixpkgs master because Go 1.22 is required.
Running nix build
on this expression:
{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "birdnet-go";
version = "v0.5.2";
src = fetchFromGitHub {
owner = "tphakala";
repo = pname;
rev = "eafdfb492427eec3eecb4eb84d8530807ca89100";
sha256 = lib.fakeHash;
};
vendorHash = lib.fakeHash;
meta = with lib; {
description = "AI solution for continuous avian monitoring and identification";
homepage = "https://github.com/tphakala/birdnet-go";
license = "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International";
maintainers = with maintainers; [ vandenoever ];
mainProgram = "birdnet";
};
}
gives me
unpacking source archive /build/eafdfb492427eec3eecb4eb84d8530807ca89100.tar.gz │
chmod: changing permissions of '/build/unpack/birdnet-go-eafdfb492427eec3eecb4eb84d8530807ca89100': Invalid argument │
chmod: changing permissions of '/build/unpack/birdnet-go-eafdfb492427eec3eecb4eb84d8530807ca89100/.air.toml': Invalid argument │
chmod: changing permissions of '/build/unpack/birdnet-go-eafdfb492427eec3eecb4eb84d8530807ca89100/.devcontainer': Invalid argument │
chmod: changing permissions of '/build/unpack/birdnet-go-eafdfb492427eec3eecb4eb84d8530807ca89100/.devcontainer/devcontainer.json': Invalid argument │
chmod: changing permissions of '/build/unpack/birdnet-go-eafdfb492427eec3eecb4eb84d8530807ca89100/.devcontainer/postCreateCommand.sh': Invalid argument │
chmod: changing permissions of '/build/unpack/birdnet-go-eafdfb492427eec3eecb4eb84d8530807ca89100/.dockerignore': Invalid argument │
What could be causing chmod
to fail with Invalid argument
?