-
When goreleaser creates a package, it seems to render the default for the pkgs.stdenv.mkDerivation {
pname = "foo";
version = "1.4.0";
src = fetchurl {
url = urlMap.${system};
sha256 = shaMap.${system};
};
sourceRoot = "foo_Darwin_arm64";
nativeBuildInputs = [ installShellFiles ];
installPhase = ''
mkdir -p $out/bin
cp -vr ./foo $out/bin/foo
'';
system = system;
meta = {
description = "foo";
homepage = "https://example.org";
license = lib.licenses.unfree;
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
platforms = [
"aarch64-darwin"
"aarch64-linux"
"i686-linux"
"x86_64-darwin"
"x86_64-linux"
];
};
} A colleague suggested adding this to the package: sourceRootMap = {
i686-linux = "foo_Linux_i386";
x86_64-linux = "foo_Linux_x86_64";
aarch64-linux = "foo_Linux_arm64";
x86_64-darwin = "foo_Darwin_x86_64";
aarch64-darwin = "foo_Darwin_arm64";
}; And then using it:
Thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Should have tried this before to add more details. When I install my package:
So, turns out, this has to be set. But maybe I am doing wrong? |
Beta Was this translation helpful? Give feedback.
-
ahh, are you setting that said, your suggestion is good, goreleaser should do it automatically though |
Beta Was this translation helpful? Give feedback.
this will fix it: #4550