forked from pub-solar/os
mnx: add notion-app
This commit is contained in:
parent
f751182f5c
commit
765f1d447f
4 changed files with 38 additions and 0 deletions
|
@ -14,7 +14,9 @@
|
|||
"brscan5"
|
||||
"brscan5-etc-files"
|
||||
"facetimehd-firmware"
|
||||
"notion-app"
|
||||
"slack"
|
||||
"terraform"
|
||||
"uhk-agent"
|
||||
"uhk-udev-rules"
|
||||
"veracrypt"
|
||||
|
|
|
@ -10,6 +10,7 @@ final: prev: with prev; {
|
|||
mailto-mutt = writeShellScriptBin "mailto-mutt" (import ./mailto-mutt.nix final);
|
||||
mopidy-jellyfin = import ./mopidy-jellyfin.nix final;
|
||||
mu = writeShellScriptBin "mu" (import ./mu.nix final);
|
||||
notion-repackaged = import ./notion-repackaged.nix final;
|
||||
notes = writeShellScriptBin "notes" (import ./notes.nix final);
|
||||
psos = writeShellScriptBin "psos" (import ./psos.nix final);
|
||||
psos-docs = import ./psos-docs.nix final;
|
||||
|
|
33
pkgs/notion-repackaged.nix
Normal file
33
pkgs/notion-repackaged.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
self:
|
||||
with self;
|
||||
let
|
||||
pname = "notion-app";
|
||||
version = "3.12.2-1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/sdkane/notion-repackaged/releases/download/v${version}/Notion-${version}.AppImage";
|
||||
sha256 = "sha256-QM5qcMOkMmxFcoqokcl5wxYTOHbYCfPkAU1iKtsQG68=";
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extract { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
|
||||
substituteInPlace $out/share/applications/${pname}.desktop \
|
||||
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||
mkdir -p $out/share/icons
|
||||
cp -r ${appimageContents}/usr/share/icons/hicolor/0x0/apps/notion-app.png $out/share/icons/notion-app.png
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Notion Desktop builds for Windows, MacOS and Linux.";
|
||||
homepage = "https://github.com/sdkane/notion-repackaged";
|
||||
license = licenses.unfree;
|
||||
maintainers = [];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
mainProgram = "notion-app";
|
||||
};
|
||||
}
|
|
@ -47,8 +47,10 @@ in
|
|||
home.packages = with pkgs; [
|
||||
zoom-us
|
||||
slack
|
||||
notion-repackaged
|
||||
prr
|
||||
tmate
|
||||
jira-cli-go
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue