From 5e9508802dd7572031c7aa892c643ff596a2a408 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Fri, 3 May 2024 22:50:59 -0400 Subject: [PATCH] treewide: mark librusty_v8 as binaryNativeCode As it is. --- pkgs/by-name/wi/windmill/package.nix | 5 ++++- pkgs/development/web/deno/librusty_v8.nix | 7 +++++-- pkgs/development/web/deno/update/librusty_v8.ts | 7 +++++-- pkgs/development/web/edge-runtime/librusty_v8.nix | 7 +++++-- pkgs/servers/http/router/librusty_v8.nix | 7 +++++-- 5 files changed, 24 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/wi/windmill/package.nix b/pkgs/by-name/wi/windmill/package.nix index 709e7d07e9fc..be7cf8ef3391 100644 --- a/pkgs/by-name/wi/windmill/package.nix +++ b/pkgs/by-name/wi/windmill/package.nix @@ -74,7 +74,10 @@ rustPlatform.buildRustPackage { name = "librusty_v8-${args.version}"; url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a"; sha256 = args.shas.${stdenv.hostPlatform.system} or (throw "Unsupported platform ${stdenv.hostPlatform.system}"); - meta = { inherit (args) version; }; + meta = { + inherit (args) version; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; }; in fetch_librusty_v8 { diff --git a/pkgs/development/web/deno/librusty_v8.nix b/pkgs/development/web/deno/librusty_v8.nix index c4b2d814ef30..c6a22105d437 100644 --- a/pkgs/development/web/deno/librusty_v8.nix +++ b/pkgs/development/web/deno/librusty_v8.nix @@ -1,12 +1,15 @@ # auto-generated file -- DO NOT EDIT! -{ stdenv, fetchurl }: +{ lib, stdenv, fetchurl }: let fetch_librusty_v8 = args: fetchurl { name = "librusty_v8-${args.version}"; url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a.gz"; sha256 = args.shas.${stdenv.hostPlatform.system}; - meta = { inherit (args) version; }; + meta = { + inherit (args) version; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; }; in fetch_librusty_v8 { diff --git a/pkgs/development/web/deno/update/librusty_v8.ts b/pkgs/development/web/deno/update/librusty_v8.ts index 14d698a063e7..301af63cb99b 100644 --- a/pkgs/development/web/deno/update/librusty_v8.ts +++ b/pkgs/development/web/deno/update/librusty_v8.ts @@ -40,14 +40,17 @@ fetchurl { const templateDeps = (version: string, deps: PrefetchResult[]) => `# auto-generated file -- DO NOT EDIT! -{ stdenv, fetchurl }: +{ lib, stdenv, fetchurl }: let fetch_librusty_v8 = args: fetchurl { name = "librusty_v8-\${args.version}"; url = "https://github.com/denoland/rusty_v8/releases/download/v\${args.version}/librusty_v8_release_\${stdenv.hostPlatform.rust.rustcTarget}.a.gz"; sha256 = args.shas.\${stdenv.hostPlatform.system}; - meta = { inherit (args) version; }; + meta = { + inherit (args) version; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; }; in fetch_librusty_v8 { diff --git a/pkgs/development/web/edge-runtime/librusty_v8.nix b/pkgs/development/web/edge-runtime/librusty_v8.nix index 1d5e334f2d07..82cdb5e1575e 100644 --- a/pkgs/development/web/edge-runtime/librusty_v8.nix +++ b/pkgs/development/web/edge-runtime/librusty_v8.nix @@ -1,11 +1,14 @@ -{ stdenv, fetchurl }: +{ lib, stdenv, fetchurl }: let fetch_librusty_v8 = args: fetchurl { name = "librusty_v8-${args.version}"; url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a"; sha256 = args.shas.${stdenv.hostPlatform.system}; - meta = { inherit (args) version; }; + meta = { + inherit (args) version; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; }; in fetch_librusty_v8 { diff --git a/pkgs/servers/http/router/librusty_v8.nix b/pkgs/servers/http/router/librusty_v8.nix index 1d5e334f2d07..82cdb5e1575e 100644 --- a/pkgs/servers/http/router/librusty_v8.nix +++ b/pkgs/servers/http/router/librusty_v8.nix @@ -1,11 +1,14 @@ -{ stdenv, fetchurl }: +{ lib, stdenv, fetchurl }: let fetch_librusty_v8 = args: fetchurl { name = "librusty_v8-${args.version}"; url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a"; sha256 = args.shas.${stdenv.hostPlatform.system}; - meta = { inherit (args) version; }; + meta = { + inherit (args) version; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; }; in fetch_librusty_v8 {