2023-10-09 19:29:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, appimageTools, makeDesktopItem }:
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: let
|
|
|
|
inherit (finalAttrs) pname version src appexec icon desktopItem;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2022-05-18 14:49:53 +00:00
|
|
|
pname = "remnote";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.13.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-08-10 07:59:29 +00:00
|
|
|
url = "https://download.remnote.io/remnote-desktop/RemNote-${version}.AppImage";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-ovM7MnRqzy/mgz+h87hqIuvquODIfmxjdJG1NZYobbk=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
appexec = appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
};
|
|
|
|
icon = fetchurl {
|
|
|
|
url = "https://www.remnote.io/icon.png";
|
|
|
|
hash = "sha256-r5D7fNefKPdjtmV7f/88Gn3tqeEG8LGuD4nHI/sCk94=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
type = "Application";
|
|
|
|
name = "remnote";
|
|
|
|
desktopName = "RemNote";
|
|
|
|
comment = "Spaced Repetition";
|
|
|
|
icon = "remnote";
|
|
|
|
exec = "remnote %u";
|
|
|
|
categories = [ "Office" ];
|
|
|
|
mimeTypes = [ "x-scheme-handler/remnote" "x-scheme-handler/rn" ];
|
|
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D ${appexec}/bin/remnote-${version} $out/bin/remnote
|
|
|
|
install -D "${desktopItem}/share/applications/"* -t $out/share/applications/
|
|
|
|
install -D ${icon} $out/share/pixmaps/remnote.png
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2022-05-18 14:49:53 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A note-taking application focused on learning and productivity";
|
|
|
|
homepage = "https://remnote.com/";
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ max-niederman chewblacka ];
|
2022-05-18 14:49:53 +00:00
|
|
|
license = licenses.unfree;
|
2023-10-09 19:29:22 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
mainProgram = "remnote";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|