mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
netron: 8.1.8 -> 8.3.3
This commit is contained in:
5743
pkgs/by-name/ne/netron/package-lock.json
generated
5743
pkgs/by-name/ne/netron/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,44 +1,38 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
stdenv,
|
||||
buildNpmPackage,
|
||||
electron_34,
|
||||
electron_36,
|
||||
fetchFromGitHub,
|
||||
jq,
|
||||
makeDesktopItem,
|
||||
}:
|
||||
|
||||
let
|
||||
electron = electron_34;
|
||||
electron = electron_36;
|
||||
description = "Visualizer for neural network, deep learning and machine learning models";
|
||||
icon = "netron";
|
||||
|
||||
in
|
||||
buildNpmPackage rec {
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "netron";
|
||||
version = "8.1.8";
|
||||
version = "8.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lutzroeder";
|
||||
repo = "netron";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-h03nqBE82mw/XpUOnnQwUxhjXpBF9Ysc1fVTBQpMIS4=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-7OdHg0nLVz7xno1FTE+fr6FZkzkI+6KjX3EsDzyZbOM=";
|
||||
};
|
||||
|
||||
# Upstream doesn't ship package-lock.json in their sources
|
||||
# https://github.com/lutzroeder/netron/issues/1430
|
||||
postPatch = ''
|
||||
cp ${./package-lock.json} package-lock.json
|
||||
'';
|
||||
npmDepsHash = "sha256-oOGHo/KCc/qlJRdIyUmoRayV1i+e0mEqMr7TTCo5YKA=";
|
||||
|
||||
npmDepsHash = "sha256-oS/s2ZcqynPTJDjoY4hIHEaBKyci/AfaCqpSHhBZB+s=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
jq
|
||||
];
|
||||
nativeBuildInputs = [ jq ];
|
||||
|
||||
env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
|
||||
|
||||
makeCacheWritable = true;
|
||||
|
||||
preBuild = ''
|
||||
if [[ $(jq --raw-output '.devDependencies.electron' < package.json | grep -E --only-matching '^[0-9]+') != ${lib.escapeShellArg (lib.versions.major electron.version)} ]]; then
|
||||
echo 'ERROR: electron version mismatch'
|
||||
@@ -96,7 +90,7 @@ buildNpmPackage rec {
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/lutzroeder/netron/releases/tag/v${version}";
|
||||
changelog = "https://github.com/lutzroeder/netron/releases/tag/v${finalAttrs.version}";
|
||||
inherit description;
|
||||
homepage = "https://netron.app";
|
||||
license = lib.licenses.mit;
|
||||
@@ -108,4 +102,4 @@ buildNpmPackage rec {
|
||||
lib.systems.inspect.patterns.isDarwin
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user