Skip to content

Commit

Permalink
feat(nix): mark all Nix packages with the right source provenance
Browse files Browse the repository at this point in the history
As GoReleaser focuses on binary packages wrapped in Nix, it is important
to mark their right source provenance, i.e. binary native code.
  • Loading branch information
RaitoBezarius authored and caarlos0 committed Oct 30, 2023
1 parent 8cb018b commit 1a5d3ff
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/pipe/nix/testdata/TestRunPipe/deps_build.nix.golden
Expand Up @@ -56,6 +56,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -56,6 +56,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -57,6 +57,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -57,6 +57,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -49,6 +49,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -49,6 +49,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -52,6 +52,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -52,6 +52,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -39,6 +39,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"x86_64-darwin"
"x86_64-linux"
Expand Down
Expand Up @@ -39,6 +39,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"x86_64-darwin"
"x86_64-linux"
Expand Down
Expand Up @@ -49,6 +49,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -49,6 +49,8 @@ pkgs.stdenv.mkDerivation {

meta = {

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -48,6 +48,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -48,6 +48,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -52,6 +52,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -52,6 +52,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -53,6 +53,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
Expand Up @@ -53,6 +53,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
2 changes: 2 additions & 0 deletions internal/pipe/nix/testdata/TestRunPipe/zip_build.nix.golden
Expand Up @@ -51,6 +51,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
2 changes: 2 additions & 0 deletions internal/pipe/nix/testdata/TestRunPipe/zip_publish.nix.golden
Expand Up @@ -51,6 +51,8 @@ pkgs.stdenv.mkDerivation {
homepage = "https://goreleaser.com";
license = lib.licenses.mit;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
Expand Down
2 changes: 2 additions & 0 deletions internal/pipe/nix/tmpl.nix
Expand Up @@ -102,6 +102,8 @@ pkgs.stdenv.mkDerivation {
license = lib.licenses.{{ . }};
{{- end }}

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
{{- range $index, $plat := .Platforms }}
"{{ . }}"
Expand Down

0 comments on commit 1a5d3ff

Please sign in to comment.