trilium-server: init at 0.37.8
This commit is contained in:
parent
184339fe8b
commit
a84c8599b3
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, autoPatchelfHook, atomEnv, makeWrapper, makeDesktopItem, gtk3, wrapGAppsHook }:
|
{ stdenv, fetchurl, autoPatchelfHook, atomEnv, makeWrapper, makeDesktopItem, gtk3, wrapGAppsHook, zlib, libxkbfile }:
|
||||||
|
|
||||||
let
|
let
|
||||||
description = "Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases.";
|
description = "Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases.";
|
||||||
@ -11,12 +11,21 @@ let
|
|||||||
categories = "Office";
|
categories = "Office";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
inherit description;
|
||||||
|
homepage = https://github.com/zadam/trilium;
|
||||||
|
license = licenses.agpl3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ emmanuelrosa dtzWill kampka ];
|
||||||
|
};
|
||||||
|
|
||||||
version = "0.37.8";
|
version = "0.37.8";
|
||||||
in {
|
in {
|
||||||
|
|
||||||
trilium-desktop = stdenv.mkDerivation rec {
|
trilium-desktop = stdenv.mkDerivation rec {
|
||||||
pname = "trilium-desktop";
|
pname = "trilium-desktop";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
inherit meta;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz";
|
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz";
|
||||||
@ -58,13 +67,43 @@ in {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
inherit description;
|
trilium-server = stdenv.mkDerivation rec {
|
||||||
homepage = https://github.com/zadam/trilium;
|
pname = "trilium-server";
|
||||||
license = licenses.agpl3;
|
inherit version;
|
||||||
platforms = platforms.linux;
|
inherit meta;
|
||||||
maintainers = with maintainers; [ emmanuelrosa dtzWill ];
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz";
|
||||||
|
sha256 = "04xhmc60fwvv8ip8mj112z7a9x5ahp51f1hvi20sffs0685mfaj3";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoPatchelfHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
zlib
|
||||||
|
libxkbfile
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
mkdir -p $out/share/trilium-server
|
||||||
|
|
||||||
|
cp -r ./* $out/share/trilium-server
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
cat > $out/bin/trilium-server <<EOF
|
||||||
|
#!${stdenv.cc.shell}
|
||||||
|
cd $out/share/trilium-server
|
||||||
|
exec ./node/bin/node src/www
|
||||||
|
EOF
|
||||||
|
chmod a+x $out/bin/trilium-server
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6810,6 +6810,7 @@ in
|
|||||||
|
|
||||||
inherit (callPackage ../applications/office/trilium {})
|
inherit (callPackage ../applications/office/trilium {})
|
||||||
trilium-desktop
|
trilium-desktop
|
||||||
|
trilium-server
|
||||||
;
|
;
|
||||||
trilium = trilium-desktop;
|
trilium = trilium-desktop;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user