blob: 0bf942586e363492f9bfa5c10b4d0b12dddec413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, fetchurl, appimageTools }:
let
pname = "athens";
version = "2.0.0-beta.30";
src = fetchurl {
url = "https://github.com/athensresearch/athens/releases/download/v${version}/Athens-${version}.AppImage";
name = "Athens-${version}.AppImage";
sha256 = "sha256-UIhVh7Ywbrgu6QBBQSsPp4l0ELRR0Jb2vR2VbH5A17U=";
};
appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
mv $out/bin/${pname}-${version} $out/bin/${pname}
install -m 444 -D ${appimageContents}/athens.desktop -t $out/share/applications
substituteInPlace $out/share/applications/athens.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/0x0/apps/athens.png \
-t $out/share/icons/hicolor/512x512/apps
'';
meta = with lib; {
description = "Open-source knowledge graph";
homepage = "https://github.com/athensresearch/athens";
license = licenses.epl10;
maintainers = with maintainers; [ bbigras ];
platforms = [ "x86_64-linux" ];
};
}
|