Skip to content

Commit

Permalink
wip: std skelleton (missing d2n function)
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Dec 24, 2022
1 parent 850d8b1 commit 409b245
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/_d2n-std/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
inputs = {
std.url = "github:divnix/std";
dream2nix.url = "github:nix-community/dream2nix";
dream2nix.inputs.nixpkgs.follows = "std/nixpkgs";
nixpkgs.follows = "std/nixpkgs";
src.url = "github:prettier/prettier/2.4.1";
src.flake = false;
};

outputs = {std, ...} @ inputs:
std.growOn {
inherit inputs;
cellsFrom = ./nix;
cellBlocks = with std.blockTypes; [
(installables "packages" {ci.build = true;})
];
}
# compat with `nix` cli
{
packages = std.harvest inputs.self ["app" "packages"];
};
}
15 changes: 15 additions & 0 deletions examples/_d2n-std/nix/app/packages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
inputs,
cell,
}: {
app = {
source = inputs.src;
projects = {
prettier = {
name = "prettier";
subsystem = "nodejs";
translator = "yarn-lock";
};
};
};
}

0 comments on commit 409b245

Please sign in to comment.