diff --git a/pkgs/by-name/atomic-browser/package.nix b/pkgs/by-name/atomic-browser/package.nix index 92919240..19fc54c3 100644 --- a/pkgs/by-name/atomic-browser/package.nix +++ b/pkgs/by-name/atomic-browser/package.nix @@ -1,23 +1,31 @@ -{ pkgs, fetchFromGitHub, mkPnpmPackage, fetchYarnDeps, fetchpatch, ... }: -let - source = fetchFromGitHub { +{ + fetchFromGitHub, + mkPnpmPackage, +}: let + inherit + (lib) + licenses + ; +in +mkPnpmPackage rec { + pname = "atomic-browser"; + version = "v0.37.0"; + + monorepoSrc = fetchFromGitHub { owner = "atomicdata-dev"; repo = "atomic-server"; rev = "v0.37.0"; hash = "sha256-+Lk2MvkTj+B+G6cNbWAbPrN5ECiyMJ4HSiiLzBLd74g="; }; -in -mkPnpmPackage rec { - name = "atomic-browser"; - version = "v0.37.0"; - src = "${source}/browser"; + + src = "${monorepoSrc}/browser"; # These 2 options are needed to work with pnpm workspaces, which atomic-browser is using # https://github.com/nzbr/pnpm2nix-nzbr/issues/29#issuecomment-1918811838 installInPlace = true; distDir = "."; - meta = with lib; { + meta = { description = "Create, share, fetch and model linked Atomic Data! There are three components: a javascript / typescript library, a react library, and a complete GUI: Atomic-Data Browser." homepage = "https://github.com/atomicdata-dev/atomic-server/tree/develop/browser"; license = licenses.mit;