Skip to content

Commit 409b245

Browse files
committed
wip: std skelleton (missing d2n function)
1 parent 850d8b1 commit 409b245

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

examples/_d2n-std/flake.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
inputs = {
3+
std.url = "github:divnix/std";
4+
dream2nix.url = "github:nix-community/dream2nix";
5+
dream2nix.inputs.nixpkgs.follows = "std/nixpkgs";
6+
nixpkgs.follows = "std/nixpkgs";
7+
src.url = "github:prettier/prettier/2.4.1";
8+
src.flake = false;
9+
};
10+
11+
outputs = {std, ...} @ inputs:
12+
std.growOn {
13+
inherit inputs;
14+
cellsFrom = ./nix;
15+
cellBlocks = with std.blockTypes; [
16+
(installables "packages" {ci.build = true;})
17+
];
18+
}
19+
# compat with `nix` cli
20+
{
21+
packages = std.harvest inputs.self ["app" "packages"];
22+
};
23+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
inputs,
3+
cell,
4+
}: {
5+
app = {
6+
source = inputs.src;
7+
projects = {
8+
prettier = {
9+
name = "prettier";
10+
subsystem = "nodejs";
11+
translator = "yarn-lock";
12+
};
13+
};
14+
};
15+
}

0 commit comments

Comments
 (0)