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:
parent
48dc8ef6d8
commit
6d8953ba08
|
@ -10,12 +10,12 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "polar-bookshelf-${version}";
|
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
|
# fetching a .deb because there's no easy way to package this Electron app
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/burtonator/polar-bookshelf/releases/download/v${version}/polar-bookshelf-${version}-amd64.deb";
|
url = "https://github.com/burtonator/polar-bookshelf/releases/download/v${version}/polar-bookshelf-${version}-amd64.deb";
|
||||||
sha256 = "11rrwd5cr984nhgrib12hx6k74hzgmb3cfk6qnr1l604dk9pqfqx";
|
sha256 = "0dh7pw8ncm8kr9anb6jqw7rr4lxgmq8a40c9zlrhzyswdpvnp1g7";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -70,6 +70,10 @@ stdenv.mkDerivation rec {
|
||||||
mv usr/share/* $out/share/
|
mv usr/share/* $out/share/
|
||||||
|
|
||||||
ln -s $out/share/polar-bookshelf/polar-bookshelf $out/bin/polar-bookshelf
|
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 = ''
|
preFixup = ''
|
||||||
|
|
Loading…
Reference in New Issue