From 13fa66cd704a979bbae81117d41788bbea7dd59d Mon Sep 17 00:00:00 2001 From: Albert Chae Date: Tue, 5 Mar 2024 21:12:22 -0800 Subject: [PATCH] format to match other packages --- pkgs/by-name/atomic-browser/package.nix | 26 ++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/atomic-browser/package.nix b/pkgs/by-name/atomic-browser/package.nix index 92919240d..19fc54c39 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;