Merge pull request #143071 from WolfangAukang/pocket-casts-fix
pocket-casts: set electron version on top-level
This commit is contained in:
commit
cd92b90301
2 changed files with 9 additions and 10 deletions
|
@ -1,11 +1,7 @@
|
||||||
{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron_12,
|
{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron
|
||||||
alsa-lib, gtk3, libXScrnSaver, libXtst, mesa, nss }:
|
, alsa-lib, gtk3, libXScrnSaver, libXtst, mesa, nss }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
# Using Electron 12 to solve errors regarding threading
|
|
||||||
electron = electron_12;
|
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
pname = "pocket-casts";
|
pname = "pocket-casts";
|
||||||
version = "0.5.0";
|
version = "0.5.0";
|
||||||
|
|
||||||
|
@ -41,8 +37,9 @@ in stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
substituteInPlace $out/share/applications/pocket-casts.desktop --replace '"/opt/Pocket Casts/pocket-casts"' $out/bin/pocket-casts
|
substituteInPlace $out/share/applications/pocket-casts.desktop \
|
||||||
substituteInPlace $out/share/applications/pocket-casts.desktop --replace '/usr/share/icons/hicolor/0x0/apps/pocket-casts.png' "pocket-casts"
|
--replace '"/opt/Pocket Casts/pocket-casts"' $out/bin/pocket-casts \
|
||||||
|
--replace '/usr/share/icons/hicolor/0x0/apps/pocket-casts.png' "pocket-casts"
|
||||||
makeWrapper ${electron}/bin/electron \
|
makeWrapper ${electron}/bin/electron \
|
||||||
$out/bin/pocket-casts \
|
$out/bin/pocket-casts \
|
||||||
--add-flags $out/opt/pocket-casts/resources/app.asar
|
--add-flags $out/opt/pocket-casts/resources/app.asar
|
||||||
|
|
|
@ -3410,7 +3410,9 @@ with pkgs;
|
||||||
|
|
||||||
pn = callPackage ../tools/text/pn { };
|
pn = callPackage ../tools/text/pn { };
|
||||||
|
|
||||||
pocket-casts = callPackage ../applications/audio/pocket-casts { };
|
pocket-casts = callPackage ../applications/audio/pocket-casts {
|
||||||
|
electron = electron_12;
|
||||||
|
};
|
||||||
|
|
||||||
poweralertd = callPackage ../tools/misc/poweralertd { };
|
poweralertd = callPackage ../tools/misc/poweralertd { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue