electron-fiddle: 0.32.1 → 0.32.6
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
897876e4c4
commit
16ad0ec345
|
@ -1,12 +1,13 @@
|
||||||
{ buildFHSEnv
|
{ buildFHSEnv
|
||||||
, electron_22
|
, electron_24
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchYarnDeps
|
, fetchYarnDeps
|
||||||
|
, fetchurl
|
||||||
, fixup_yarn_lock
|
, fixup_yarn_lock
|
||||||
, git
|
, git
|
||||||
, lib
|
, lib
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, nodejs_16
|
, nodejs_18
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, util-linux
|
, util-linux
|
||||||
, zip
|
, zip
|
||||||
|
@ -14,21 +15,29 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "electron-fiddle";
|
pname = "electron-fiddle";
|
||||||
version = "0.32.1";
|
version = "0.32.6";
|
||||||
electron = electron_22;
|
electron = electron_24;
|
||||||
nodejs = nodejs_16;
|
nodejs = nodejs_18;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "electron";
|
owner = "electron";
|
||||||
repo = "fiddle";
|
repo = "fiddle";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-k+cbg03mwvobyazIUqm+TO9OMYVFQICy4CtkUZmvkr8=";
|
hash = "sha256-Iuss2xwts1aWy2rKYG7J2EvFdH8Bbedn/uZG2bi9UHw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# As of https://github.com/electron/fiddle/pull/1316 this is fetched
|
||||||
|
# from the network and has no stable hash. Grab an old version from
|
||||||
|
# the repository.
|
||||||
|
releasesJson = fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/electron/fiddle/v0.32.4~18/static/releases.json";
|
||||||
|
hash = "sha256-1sxd3eJ6/WjXS6XQbrgKUTNUmrhuc1dAvy+VAivGErg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (nodejs.pkgs) yarn;
|
inherit (nodejs.pkgs) yarn;
|
||||||
offlineCache = fetchYarnDeps {
|
offlineCache = fetchYarnDeps {
|
||||||
yarnLock = "${src}/yarn.lock";
|
yarnLock = "${src}/yarn.lock";
|
||||||
hash = "sha256-3vM+YPIA3zeWBaEFXU5lFl+VaGmAY0Qdg4pSA6mIKl0=";
|
hash = "sha256-dwhwUWwv6RYKEMdhRBvKVXvM8n1r+Qo0D3/uFsWIOpw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
electronDummyMirror = "https://electron.invalid/";
|
electronDummyMirror = "https://electron.invalid/";
|
||||||
|
@ -55,6 +64,8 @@ let
|
||||||
cp -ra '${electron}/lib/electron' "$TMPDIR/electron"
|
cp -ra '${electron}/lib/electron' "$TMPDIR/electron"
|
||||||
chmod -R u+w "$TMPDIR/electron"
|
chmod -R u+w "$TMPDIR/electron"
|
||||||
(cd "$TMPDIR/electron" && zip -0Xr ~/.cache/electron/${electronDummyHash}/${electronDummyFilename} .)
|
(cd "$TMPDIR/electron" && zip -0Xr ~/.cache/electron/${electronDummyHash}/${electronDummyFilename} .)
|
||||||
|
|
||||||
|
ln -s ${releasesJson} static/releases.json
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue