nixpkgs/pkgs/applications/misc/remnote/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, appimageTools, makeDesktopItem }:
2022-04-28 01:36:18 +00:00
stdenv.mkDerivation (finalAttrs: let
inherit (finalAttrs) pname version src appexec icon desktopItem;
in
{
2022-04-28 01:36:18 +00:00
pname = "remnote";
2024-04-26 07:58:19 +00:00
version = "1.16.4";
2022-04-28 01:36:18 +00:00
src = fetchurl {
url = "https://download.remnote.io/remnote-desktop/RemNote-${version}.AppImage";
2024-04-26 07:58:19 +00:00
hash = "sha256-dgbQ0cbPq7BSQ9VwwH6+GoAxb85HDxRixfjeDJBtOrg=";
};
2024-02-18 16:53:52 +00:00
appexec = appimageTools.wrapType2 {
inherit pname version src;
};
2024-02-18 16:53:52 +00:00
icon = fetchurl {
url = "https://www.remnote.io/icon.png";
hash = "sha256-r5D7fNefKPdjtmV7f/88Gn3tqeEG8LGuD4nHI/sCk94=";
2022-04-28 01:36:18 +00:00
};
2024-02-18 16:53:52 +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" ];
};
2024-02-18 16:53:52 +00:00
dontUnpack = true;
dontConfigure = true;
dontBuild = true;
2024-02-18 16:53:52 +00:00
installPhase = ''
runHook preInstall
install -Dm755 ${appexec}/bin/remnote $out/bin/remnote
2024-02-18 16:53:52 +00:00
install -Dm444 "${desktopItem}/share/applications/"* -t $out/share/applications/
install -Dm444 ${icon} $out/share/pixmaps/remnote.png
2022-04-28 01:36:18 +00:00
runHook postInstall
'';
2024-02-18 16:53:52 +00:00
2022-04-28 01:36:18 +00:00
meta = with lib; {
description = "A note-taking application focused on learning and productivity";
homepage = "https://remnote.com/";
maintainers = with maintainers; [ max-niederman chewblacka ];
2022-04-28 01:36:18 +00:00
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
mainProgram = "remnote";
2022-04-28 01:36:18 +00:00
};
})