Merge pull request #212480 from dbalan/roam-research
roam-research: init at 0.0.18
This commit is contained in:
commit
1ae1914f0c
|
@ -3770,6 +3770,12 @@
|
||||||
githubId = 49904992;
|
githubId = 49904992;
|
||||||
name = "Dawid Sowa";
|
name = "Dawid Sowa";
|
||||||
};
|
};
|
||||||
|
dbalan = {
|
||||||
|
email = "nix@dbalan.in";
|
||||||
|
github = "dbalan";
|
||||||
|
githubId = 223910;
|
||||||
|
name = "Dhananjay Balan";
|
||||||
|
};
|
||||||
dbeckwith = {
|
dbeckwith = {
|
||||||
email = "djbsnx@gmail.com";
|
email = "djbsnx@gmail.com";
|
||||||
github = "dbeckwith";
|
github = "dbeckwith";
|
||||||
|
|
81
pkgs/applications/office/roam-research/default.nix
Normal file
81
pkgs/applications/office/roam-research/default.nix
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
{ stdenv, lib, fetchurl, alsa-lib, atk, cairo, cups, dbus, dpkg, expat
|
||||||
|
, gdk-pixbuf, glib, gtk3, libX11, libXScrnSaver, libXcomposite, libXcursor
|
||||||
|
, libXdamage, libXext, libXfixes, libXi, libXrandr, libXrender, libXtst, libdrm
|
||||||
|
, libpulseaudio, libxcb, libxkbcommon, libxshmfence, mesa, nspr, nss, pango
|
||||||
|
, udev, }:
|
||||||
|
|
||||||
|
let
|
||||||
|
libPath = lib.makeLibraryPath [
|
||||||
|
alsa-lib
|
||||||
|
atk
|
||||||
|
cairo
|
||||||
|
cups
|
||||||
|
dbus
|
||||||
|
expat
|
||||||
|
gdk-pixbuf
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
libX11
|
||||||
|
libXcomposite
|
||||||
|
libXdamage
|
||||||
|
libXext
|
||||||
|
libXfixes
|
||||||
|
libXi
|
||||||
|
libXrandr
|
||||||
|
libdrm
|
||||||
|
libxcb
|
||||||
|
libxkbcommon
|
||||||
|
libxshmfence
|
||||||
|
mesa
|
||||||
|
nspr
|
||||||
|
nss
|
||||||
|
pango
|
||||||
|
stdenv.cc.cc
|
||||||
|
libXScrnSaver
|
||||||
|
libXcursor
|
||||||
|
libXrender
|
||||||
|
libXtst
|
||||||
|
libpulseaudio
|
||||||
|
udev
|
||||||
|
];
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
pname = "roam-research";
|
||||||
|
version = "0.0.18";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url =
|
||||||
|
"https://roam-electron-deploy.s3.us-east-2.amazonaws.com/${pname}_${version}_amd64.deb";
|
||||||
|
sha256 = "sha256-veDWBFZbODsdaO1UdfuC4w6oGCkeVBe+fqKn5XVHKDQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ dpkg ];
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
mkdir pkg
|
||||||
|
dpkg-deb -x $src pkg
|
||||||
|
sourceRoot=pkg
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out/bin"
|
||||||
|
mv opt "$out/"
|
||||||
|
|
||||||
|
ln -s "$out/opt/Roam Research/roam-research" "$out/bin/roam-research"
|
||||||
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "${libPath}:$out/opt/Roam Research:\$ORIGIN" "$out/opt/Roam Research/roam-research"
|
||||||
|
|
||||||
|
mv usr/* "$out/"
|
||||||
|
|
||||||
|
substituteInPlace $out/share/applications/roam-research.desktop \
|
||||||
|
--replace "/opt/Roam Research/roam-research" "roam-research"
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontPatchELF = true;
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A note-taking tool for networked thought.";
|
||||||
|
homepage = "https://roamresearch.com/";
|
||||||
|
maintainers = with lib.maintainers; [ dbalan ];
|
||||||
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||||
|
license = licenses.unfree;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -12234,6 +12234,8 @@ with pkgs;
|
||||||
|
|
||||||
rnv = callPackage ../tools/text/xml/rnv { };
|
rnv = callPackage ../tools/text/xml/rnv { };
|
||||||
|
|
||||||
|
roam-research = callPackage ../applications/office/roam-research { };
|
||||||
|
|
||||||
rosie = callPackage ../tools/text/rosie { };
|
rosie = callPackage ../tools/text/rosie { };
|
||||||
|
|
||||||
rounded-mgenplus = callPackage ../data/fonts/rounded-mgenplus { };
|
rounded-mgenplus = callPackage ../data/fonts/rounded-mgenplus { };
|
||||||
|
|
Loading…
Reference in a new issue