1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

Merge pull request #308949 from amarshall/librusty_v8-source-provenance

treewide: mark packages using librusty_v8 as binaryNativeCode
This commit is contained in:
Peder Bergebakken Sundt 2024-06-12 12:46:47 +02:00 committed by GitHub
commit 4bf63184e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 24 additions and 10 deletions

View file

@ -74,7 +74,10 @@ rustPlatform.buildRustPackage {
name = "librusty_v8-${args.version}"; 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"; 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}"); 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 in
fetch_librusty_v8 { fetch_librusty_v8 {

View file

@ -1,12 +1,15 @@
# auto-generated file -- DO NOT EDIT! # auto-generated file -- DO NOT EDIT!
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
let let
fetch_librusty_v8 = args: fetchurl { fetch_librusty_v8 = args: fetchurl {
name = "librusty_v8-${args.version}"; 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"; 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}; sha256 = args.shas.${stdenv.hostPlatform.system};
meta = { inherit (args) version; }; meta = {
inherit (args) version;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}; };
in in
fetch_librusty_v8 { fetch_librusty_v8 {

View file

@ -40,14 +40,17 @@ fetchurl {
const templateDeps = (version: string, deps: PrefetchResult[]) => const templateDeps = (version: string, deps: PrefetchResult[]) =>
`# auto-generated file -- DO NOT EDIT! `# auto-generated file -- DO NOT EDIT!
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
let let
fetch_librusty_v8 = args: fetchurl { fetch_librusty_v8 = args: fetchurl {
name = "librusty_v8-\${args.version}"; 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"; 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}; sha256 = args.shas.\${stdenv.hostPlatform.system};
meta = { inherit (args) version; }; meta = {
inherit (args) version;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}; };
in in
fetch_librusty_v8 { fetch_librusty_v8 {

View file

@ -1,12 +1,14 @@
# auto-generated file -- DO NOT EDIT! { lib, stdenv, fetchurl }:
{ stdenv, fetchurl }:
let let
fetch_librusty_v8 = args: fetchurl { fetch_librusty_v8 = args: fetchurl {
name = "librusty_v8-${args.version}"; 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"; 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}; sha256 = args.shas.${stdenv.hostPlatform.system};
meta = { inherit (args) version; }; meta = {
inherit (args) version;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}; };
in in
fetch_librusty_v8 { fetch_librusty_v8 {

View file

@ -1,11 +1,14 @@
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
let let
fetch_librusty_v8 = args: fetchurl { fetch_librusty_v8 = args: fetchurl {
name = "librusty_v8-${args.version}"; 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"; 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}; sha256 = args.shas.${stdenv.hostPlatform.system};
meta = { inherit (args) version; }; meta = {
inherit (args) version;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
}; };
in in
fetch_librusty_v8 { fetch_librusty_v8 {