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 4b6f3e2
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions pkgs/by-name/atomic-browser/package.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
{ pkgs, fetchFromGitHub, mkPnpmPackage, fetchYarnDeps, fetchpatch, ... }:
let
source = fetchFromGitHub {
{
fetchFromGitHub,
lib,
mkPnpmPackage,
}: let
inherit
(lib)
licenses
maintainers
;
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; {
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."
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;
maintainers = with maintainers; [];
Expand Down

0 comments on commit 4b6f3e2

Please sign in to comment.