Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init: atomic-browser at 0.37.0 #164

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 56 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
inputs.rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
inputs.dream2nix.url = "github:nix-community/dream2nix";
inputs.dream2nix.inputs.nixpkgs.follows = "nixpkgs";
inputs.pnpm2nix-nzbr.url = "github:nzbr/pnpm2nix-nzbr";
inputs.pnpm2nix-nzbr.inputs.nixpkgs.follows = "nixpkgs";

outputs = {
self,
Expand All @@ -26,6 +28,7 @@
sops-nix,
rust-overlay,
dream2nix,
pnpm2nix-nzbr,
...
}: let
inherit
Expand Down Expand Up @@ -72,6 +75,7 @@

pkgsByName = import ./pkgs/by-name {
inherit (pkgs) lib;
inherit (pkgs) mkPnpmPackage;
inherit callPackage dream2nix pkgs;
};

Expand Down Expand Up @@ -105,7 +109,10 @@
rawNixosConfigs;

eachDefaultSystemOutputs = flake-utils.lib.eachDefaultSystem (system: let
pkgs = importNixpkgs system [rust-overlay.overlays.default];
pkgs = importNixpkgs system [
rust-overlay.overlays.default
pnpm2nix-nzbr.overlays.default
];
treefmtEval = loadTreefmt pkgs;
toplevel = name: config: nameValuePair "nixosConfigs/${name}" config.config.system.build.toplevel;
in {
Expand Down
36 changes: 36 additions & 0 deletions pkgs/by-name/atomic-browser/package.nix
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried to make this file follow the format of all the others since it appears they were standardized at some point

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=";
};
Chickensoupwithrice marked this conversation as resolved.
Show resolved Hide resolved

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; [];
};
}
1 change: 1 addition & 0 deletions pkgs/by-name/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
callPackage,
dream2nix,
mkPnpmPackage,
pkgs,
}: let
baseDirectory = ./.;
Expand Down
Loading