Skip to content

Commit

Permalink
format to match other packages
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchae committed Mar 6, 2024
1 parent 3d62c31 commit 13fa66c
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions pkgs/by-name/atomic-browser/package.nix
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 13fa66c

Please sign in to comment.