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 4b03d3b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
27 changes: 27 additions & 0 deletions examples/_d2n-std/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
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,
self,
...
} @ inputs:
std.growOn {
inherit inputs;
cellsFrom = ./nix;
cellBlocks = with std.blockTypes; [
(installables "packages" {ci.build = true;})
];
}
# compat with `nix` cli
{
packages = std.harvest self ["app" "packages"];
};
}
16 changes: 16 additions & 0 deletions examples/_d2n-std/nix/app/packages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
inputs,
cell,
}: rec {
default = app;
app = {
source = inputs.src;
projects = {
prettier = {
name = "prettier";
subsystem = "nodejs";
translator = "yarn-lock";
};
};
};
}

0 comments on commit 4b03d3b

Please sign in to comment.