3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/obsidian/default.nix

32 lines
1 KiB
Nix
Raw Normal View History

2020-06-25 01:38:32 +01:00
{ appimageTools, fetchurl, lib, gsettings-desktop-schemas, gtk3}:
let
pname = "obsidian";
version = "0.7.3";
in
appimageTools.wrapType2 rec {
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/obsidianmd/obsidian-releases/releases/download/v${version}/Obsidian-${version}.AppImage";
sha256 = "1qiag5szagalik72j8s2dmp7075g48jxgcdy0wgd02kfv90ai0y6";
};
profile = ''
export LC_ALL=C.UTF-8
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
'';
# Strip version from binary name.
2020-06-25 17:33:11 +01:00
extraInstallCommands = "mv $out/bin/{${name},${pname}}";
2020-06-25 01:38:32 +01:00
meta = with lib; {
description = "Obsidian is a powerful knowledge base that works on top of a local folder of plain text Markdown files.";
homepage = "https://obsidian.md";
license = licenses.obsidian;
2020-06-25 01:38:32 +01:00
maintainers = with maintainers; [ conradmearns ];
platforms = [ "x86_64-linux" ];
};
}