pocket-casts: 0.5.0 -> 0.6.0

This commit is contained in:
P. R. d. O 2022-11-15 15:39:46 -06:00
parent 76d5ecd089
commit 378ed33aa9
No known key found for this signature in database
GPG key ID: 7B0FF33FF90110C7
2 changed files with 16 additions and 17 deletions

View file

@ -3,11 +3,11 @@
stdenv.mkDerivation rec {
pname = "pocket-casts";
version = "0.5.0";
version = "0.6.0";
src = fetchurl {
url = "https://github.com/felicianotech/pocket-casts-desktop-app/releases/download/v${version}/${pname}_${version}_amd64.deb";
sha256 = "sha256-frBtIxwRO/6k6j0itqN10t+9AyNadqXm8vC1YP960ts=";
sha256 = "sha256-nHdF9RDOkM9HwwmK/axiIPM4nmKrWp/FHNC/EI1vTTc=";
};
nativeBuildInputs = [
@ -18,31 +18,32 @@ stdenv.mkDerivation rec {
buildInputs = [ alsa-lib gtk3 libXScrnSaver libXtst mesa nss ];
dontBuild = true;
dontConfigure = true;
unpackPhase = ''
dpkg-deb -x ${src} ./
unpackCmd = ''
# If unpacking using -x option, there is a permission error
dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner;
'';
installPhase = ''
runHook preInstall
mv usr $out
mv opt $out
mv "$out/opt/Pocket Casts" $out/opt/pocket-casts
mv $out/share/icons/hicolor/0x0 $out/share/icons/hicolor/256x256
mkdir -p $out
mv bin $out
mv lib $out
mv share $out
cp $out/lib/pocket-casts/resources/app/icon.png $out/share/pixmaps/pocket-casts.png
runHook postInstall
'';
postFixup = ''
substituteInPlace $out/share/applications/pocket-casts.desktop \
--replace '"/opt/Pocket Casts/pocket-casts"' $out/bin/pocket-casts \
--replace '/usr/share/icons/hicolor/0x0/apps/pocket-casts.png' "pocket-casts"
--replace Name=pocket-casts "Name=Pocket Casts" \
--replace GenericName=pocket-casts "GenericName=Podcasts App" \
--replace Exec=pocket-casts Exec=$out/bin/pocket-casts
makeWrapper ${electron}/bin/electron \
$out/bin/pocket-casts \
--add-flags $out/opt/pocket-casts/resources/app.asar
--add-flags $out/lib/pocket-casts/resources/app/main.js
'';
meta = with lib; {

View file

@ -4762,9 +4762,7 @@ with pkgs;
pn = callPackage ../tools/text/pn { };
pocket-casts = callPackage ../applications/audio/pocket-casts {
electron = electron_14;
};
pocket-casts = callPackage ../applications/audio/pocket-casts { };
pouf = callPackage ../tools/misc/pouf { };