Skip to content

Commit

Permalink
try adding pnpm2nix-nzbr
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchae committed Mar 2, 2024
1 parent 2aaa8b5 commit e9f9ea8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
5 changes: 4 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,7 +75,7 @@

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

explicitPkgs = import ./pkgs {
Expand Down
27 changes: 27 additions & 0 deletions pkgs/by-name/atomic-browser/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ pkgs, fetchFromGitHub, mkPnpmPackage, fetchYarnDeps, fetchpatch, ... }:
let
source = fetchFromGitHub {
owner = "atomicdata-dev";
repo = "atomic-server";
};
in
mkPnpmPackage rec {
name = "atomic-web";
version = "v0.34.5";
src = "${source}/browser";

patches = [
./workspaces.patch
];

installPhase = "";
distPhase = "";

packageJSON = "${source}/browser/package.json";
# Upstream does not contain a yarn.lock
yarnLock = ./yarn.lock;
offlineCache = fetchYarnDeps {
yarnLock = ./yarn.lock;
hash = "sha256-GK5Ehk82VQ5ajuBTQlPwTB0aaxhjAoD2Uis8wiam7Z0=";
};
}

0 comments on commit e9f9ea8

Please sign in to comment.