8 common = import ./common.nix { inherit fetchurl; };
9 inherit (stdenv.hostPlatform) system;
11 stdenv.mkDerivation rec {
12 inherit (common) pname version;
13 src = common.sources.${system} or (throw "Source for ${pname} is not available for ${system}");
15 appName = "Roam Research";
19 nativeBuildInputs = [ _7zz ];
23 mkdir -p "$out/Applications"
24 cp -R *.app "$out/Applications"
27 ln -s "$out/Applications/${appName}.app/Contents/MacOS/${appName}" "$out/bin/${appName}"
32 description = "Note-taking tool for networked thought";
33 homepage = "https://roamresearch.com/";
34 maintainers = with lib.maintainers; [ dbalan ];
35 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
36 license = licenses.unfree;
41 mainProgram = "roam-research";