-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.default.nix
More file actions
32 lines (28 loc) · 970 Bytes
/
example.default.nix
File metadata and controls
32 lines (28 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This is an example of what downstream consumers of ainglenix should do
# This is also used to dogfood as many commands as possible for ainglenix
# For example the release process for ainglenix uses this file
let
# point this to your local config.nix file for this project
# example.config.nix shows and documents a lot of the options
config = import ./example.config.nix;
# START AINGLENIX IMPORT BOILERPLATE
ainglenix = import (
if ! config.ainglenix.use-github
then config.ainglenix.local.path
else fetchTarball {
url = "https://github.com/${config.ainglenix.github.owner}/${config.ainglenix.github.repo}/tarball/${config.ainglenix.github.ref}";
sha256 = config.ainglenix.github.sha256;
}
) { config = config; };
# END AINGLENIX IMPORT BOILERPLATE
in
with ainglenix.pkgs;
{
dev-shell = stdenv.mkDerivation (ainglenix.shell // {
name = "dev-shell";
buildInputs = [ ]
++ ainglenix.shell.buildInputs
++ config.buildInputs
;
});
}