polar-bookshelf: 1.0.11 -> 1.0.13 (#50238)

* polar-bookshelf: 1.0.11 -> 1.0.13

* polar-bookshelf: fix desktop file
This commit is contained in:
Andy Chun 2018-11-17 02:01:33 -08:00 committed by Renaud
parent 48dc8ef6d8
commit 6d8953ba08

View File

@ -10,12 +10,12 @@
stdenv.mkDerivation rec {
name = "polar-bookshelf-${version}";
version = "1.0.11";
version = "1.0.13";
# fetching a .deb because there's no easy way to package this Electron app
src = fetchurl {
url = "https://github.com/burtonator/polar-bookshelf/releases/download/v${version}/polar-bookshelf-${version}-amd64.deb";
sha256 = "11rrwd5cr984nhgrib12hx6k74hzgmb3cfk6qnr1l604dk9pqfqx";
sha256 = "0dh7pw8ncm8kr9anb6jqw7rr4lxgmq8a40c9zlrhzyswdpvnp1g7";
};
buildInputs = [
@ -70,6 +70,10 @@ stdenv.mkDerivation rec {
mv usr/share/* $out/share/
ln -s $out/share/polar-bookshelf/polar-bookshelf $out/bin/polar-bookshelf
# Correct desktop file `Exec`
substituteInPlace $out/share/applications/polar-bookshelf.desktop \
--replace "/opt/Polar Bookshelf/polar-bookshelf" "$out/bin/polar-bookshelf"
'';
preFixup = ''