1 { lib, stdenv, undmg, fetchurl }:
3 common = import ./common.nix { inherit fetchurl; };
4 inherit (stdenv.hostPlatform) system;
6 stdenv.mkDerivation rec {
7 inherit (common) pname version;
8 src = common.sources.${system} or (throw "Source for ${pname} is not available for ${system}");
10 appName = "Roam Research";
14 nativeBuildInputs = [ undmg ];
18 mkdir -p "$out/Applications"
19 cp -R *.app "$out/Applications"
22 ln -s "$out/Applications/${appName}.app/Contents/MacOS/${appName}" "$out/bin/${appName}"
27 description = "A note-taking tool for networked thought";
28 homepage = "https://roamresearch.com/";
29 maintainers = with lib.maintainers; [ dbalan ];
30 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
31 license = licenses.unfree;
32 platforms = [ "x86_64-darwin" "aarch64-darwin" ];