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

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

34 lines
1.0 KiB
Nix
Raw Normal View History

{
2024-05-24 12:17:25 +00:00
lib,
fetchurl,
appimageTools,
}:
let
2022-04-28 01:36:18 +00:00
pname = "remnote";
2024-05-24 22:13:31 +00:00
version = "1.16.18";
2022-04-28 01:36:18 +00:00
src = fetchurl {
2024-05-24 22:13:31 +00:00
url = "https://download2.remnote.io/remnote-desktop2/RemNote-${version}.AppImage";
hash = "sha256-ps7Rl1oA2QOPvO2XeCY8DrWtCV9WPlX9jbhypz2ZARA=";
};
2024-05-24 12:17:25 +00:00
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
install -Dm444 ${appimageContents}/remnote.desktop -t $out/share/applications
substituteInPlace $out/share/applications/remnote.desktop \
--replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=remnote %u'
install -Dm444 ${appimageContents}/remnote.png -t $out/share/pixmaps
'';
2024-02-18 16:53:52 +00:00
2022-04-28 01:36:18 +00:00
meta = with lib; {
description = "Note-taking application focused on learning and productivity";
2022-04-28 01:36:18 +00:00
homepage = "https://remnote.com/";
maintainers = with maintainers; [ 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
};
2024-05-24 12:17:25 +00:00
}