Merge pull request #122594 from bbigras/obsidian

obsidian: 0.11.13 -> 0.12.3
This commit is contained in:
Sandro 2021-05-12 12:04:01 +02:00 committed by GitHub
commit 0667aa1655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,17 +30,18 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "obsidian"; pname = "obsidian";
version = "0.11.13"; version = "0.12.3";
src = fetchurl { src = fetchurl {
url = url = "https://github.com/obsidianmd/obsidian-releases/releases/download/v${version}/obsidian-${version}.tar.gz";
"https://github.com/obsidianmd/obsidian-releases/releases/download/v${version}/obsidian-${version}.tar.gz"; sha256 = "sha256-nwtQp7BkMZwMzfnA5wdcMAhfezM//Lm9cf0pbvnOVZE=";
sha256 = "0QL1rP37pmdIdGM9eHa7PfW1GVrvn2fX4bQPqQ8FOpI=";
}; };
nativeBuildInputs = [ makeWrapper graphicsmagick ]; nativeBuildInputs = [ makeWrapper graphicsmagick ];
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper ${electron}/bin/electron $out/bin/obsidian \ makeWrapper ${electron}/bin/electron $out/bin/obsidian \
@ -56,6 +57,8 @@ in stdenv.mkDerivation rec {
mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
gm convert -resize "$size"x"$size" ${icon} $out/share/icons/hicolor/"$size"x"$size"/apps/obsidian.png gm convert -resize "$size"x"$size" ${icon} $out/share/icons/hicolor/"$size"x"$size"/apps/obsidian.png
done done
runHook postInstall
''; '';
passthru.updateScript = updateScript; passthru.updateScript = updateScript;