Merge pull request #122594 from bbigras/obsidian
obsidian: 0.11.13 -> 0.12.3
This commit is contained in:
commit
0667aa1655
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user