-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use pnpm2nix-nzbr which supports pnpm version 6 lockfiles. - Because atomic-browser is using pnpm workspaces, `installInPlace` and `distDir="."` A follow up PR will create a module for this Co-authored-by: Anish Lakhwara <[email protected]>
- Loading branch information
1 parent
2aaa8b5
commit 2015a5d
Showing
4 changed files
with
101 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
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="; | ||
}; | ||
|
||
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 = { | ||
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; []; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
lib, | ||
callPackage, | ||
dream2nix, | ||
mkPnpmPackage, | ||
pkgs, | ||
}: let | ||
baseDirectory = ./.; | ||
|