mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
40 lines
1.3 KiB
Nix
40 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
appimageTools,
|
|
fetchurl,
|
|
}:
|
|
let
|
|
pname = "heptabase";
|
|
version = "1.39.0";
|
|
src = fetchurl {
|
|
url = "https://github.com/heptameta/project-meta/releases/download/v${version}/Heptabase-${version}.AppImage";
|
|
hash = "sha256-/uRPxmMTBr2ZkkY/Sp0FHI76ttoDDO7pID6fFckvUY8=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
|
in
|
|
appimageTools.wrapType2 {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
install -Dm444 ${appimageContents}/project-meta.desktop -T $out/share/applications/heptabase.desktop
|
|
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/0x0/apps/project-meta.png $out/share/icons/hicolor/512x512/apps/${pname}.png
|
|
|
|
substituteInPlace $out/share/applications/heptabase.desktop \
|
|
--replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=heptabase %U' \
|
|
--replace-fail 'Icon=project-meta' 'Icon=${pname}'
|
|
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://github.com/heptameta/project-meta/releases/tag/v${version}";
|
|
description = "A visual note-taking tool for learning complex topics";
|
|
homepage = "https://heptabase.com/";
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
|
|
mainProgram = "heptabase";
|
|
platforms = [ "x86_64-linux" ];
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
}
|