mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
breaktimer: Use electron 41 (#537979)
This commit is contained in:
commit
84642b7ce1
1 changed files with 2 additions and 9 deletions
|
|
@ -3,7 +3,7 @@
|
|||
stdenv,
|
||||
buildNpmPackage,
|
||||
copyDesktopItems,
|
||||
electron_40,
|
||||
electron_41,
|
||||
fetchFromGitHub,
|
||||
jq,
|
||||
makeDesktopItem,
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
}:
|
||||
|
||||
let
|
||||
electron = electron_40;
|
||||
electron = electron_41;
|
||||
nodejs = nodejs_24;
|
||||
description = "Cross-platform desktop app for managing periodic breaks";
|
||||
in
|
||||
|
|
@ -51,13 +51,6 @@ buildNpmPackage rec {
|
|||
copyDesktopItems
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
if [[ $(jq --raw-output '.devDependencies.electron' < package.json | grep -E --only-matching '\^[0-9]+' | sed -e 's/\^//') != ${lib.escapeShellArg (lib.versions.major electron.version)} ]]; then
|
||||
echo 'ERROR: electron version mismatch'
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue