Skip to content

Commit c76d685

Browse files
committed
flake: Create template for setting up pebble.nix in a Pebble project
1 parent 9bfcf94 commit c76d685

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

flake.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,20 @@
9595
pypkjs = final.pebble-tool.passthru.pythonLibs.pypkjs;
9696
pyv8 = final.callPackage ./derivations/pyv8 { };
9797
};
98+
99+
templates = rec {
100+
basic = {
101+
path = ./templates/basic;
102+
description = "A simple pebble.nix project, with a development shell for building Pebble apps";
103+
welcomeText = ''
104+
# Next Steps
105+
- Check out the Pebble Developer docs: https://developer.rebble.io
106+
- See what else pebble.nix can do: https://github.com/Sorixelle/pebble.nix
107+
- Join us in the Rebble Discord server, and get help writing Pebble apps in #app-dev: https://discordapp.com/invite/aRUAYFN
108+
'';
109+
};
110+
111+
default = basic;
112+
};
98113
};
99114
}

templates/basic/flake.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
description = "A new Pebble app";
3+
4+
inputs = {
5+
pebble.url = "github:Sorixelle/pebble.nix";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs =
10+
{ pebble, flake-utils, ... }:
11+
flake-utils.lib.eachDefaultSystem (system: {
12+
devShell = pebble.pebbleEnv.${system} { };
13+
});
14+
}

0 commit comments

Comments
 (0)